cohtml.LibraryParamsManager
A class responsible for caching and storing the LibraryParams required to create a Cohtml Library.
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| ILibraryParams | GetCompositeLibraryParams() |
| void | CustomizeExtendedParams(ref ExtendedLibraryParams extendedLibraryParams) Invoked before initializing the native Library object so users can modify the library parameters if needed. |
| ExtendedLibraryParams | GetJsonParamsOrDefault() Reads the library params from a JSON file if it exists and caches them. Subsequent calls to this method returns cached library params. If no library params were stored in JSON format, default ones are created and cached. |
| TextAsset | GetJson() Reads the JSON file into a TextAsset object. |
| void | Dispose() |
Public Properties
Section titled “Public Properties”| Name | |
|---|---|
| Func< ExtendedLibraryParams, ExtendedLibraryParams > | OnCustomizeExtendedParams Invoked before initializing the native Library object so users can modify the library parameters if needed. |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| const string | CohtmlLibraryParamsKey A path used to read/write a JSON file containing the LibraryParams. |
| bool | EnableMemoryTracking Returns true if memory tracking is enabled. |
| bool | ShouldUseCSharpBackend Returns true if the C# rendering backend should be used. |
| ILibraryParams | LibraryParams Returns the native LibraryParams object. |
| bool | EnableDebugger Returns true the DevTools debugger is enabled in the Unity3D Editor and Development builds. |
| bool | EnableDebuggerInBuild Returns true if the DevTools debugger is enabled in all build configurations. |
| int | DebuggerPort Returns the DevTools debugger port. |
| Severity | LoggingSeverity Returns the logging severity of the Cohtml Library parameters. |
Public Functions Documentation
Section titled “Public Functions Documentation”function GetCompositeLibraryParams
Section titled “function GetCompositeLibraryParams”static ILibraryParams GetCompositeLibraryParams()function CustomizeExtendedParams
Section titled “function CustomizeExtendedParams”static void CustomizeExtendedParams( ref ExtendedLibraryParams extendedLibraryParams)Invoked before initializing the native Library object so users can modify the library parameters if needed.
Parameters:
- extendedLibraryParams A reference to the object you want to modify.
function GetJsonParamsOrDefault
Section titled “function GetJsonParamsOrDefault”static ExtendedLibraryParams GetJsonParamsOrDefault()Reads the library params from a JSON file if it exists and caches them. Subsequent calls to this method returns cached library params. If no library params were stored in JSON format, default ones are created and cached.
function GetJson
Section titled “function GetJson”static TextAsset GetJson()Reads the JSON file into a TextAsset object.
function Dispose
Section titled “function Dispose”static void Dispose()Public Property Documentation
Section titled “Public Property Documentation”property OnCustomizeExtendedParams
Section titled “property OnCustomizeExtendedParams”static Func< ExtendedLibraryParams, ExtendedLibraryParams > OnCustomizeExtendedParams;Invoked before initializing the native Library object so users can modify the library parameters if needed.
Public Attributes Documentation
Section titled “Public Attributes Documentation”variable CohtmlLibraryParamsKey
Section titled “variable CohtmlLibraryParamsKey”const string CohtmlLibraryParamsKey = "Configuration/LibraryParams";A path used to read/write a JSON file containing the LibraryParams.
variable EnableMemoryTracking
Section titled “variable EnableMemoryTracking”static bool EnableMemoryTracking => GetJsonParamsOrDefault().EnableMemoryTracking;Returns true if memory tracking is enabled.
variable ShouldUseCSharpBackend
Section titled “variable ShouldUseCSharpBackend”static bool ShouldUseCSharpBackend => GetJsonParamsOrDefault().UseCSharpRenderingBackend;Returns true if the C# rendering backend should be used.
variable LibraryParams
Section titled “variable LibraryParams”static ILibraryParams LibraryParams => GetJsonParamsOrDefault().Params;Returns the native LibraryParams object.
variable EnableDebugger
Section titled “variable EnableDebugger”static bool EnableDebugger => GetJsonParamsOrDefault().EnableDebugger;Returns true the DevTools debugger is enabled in the Unity3D Editor and Development builds.
variable EnableDebuggerInBuild
Section titled “variable EnableDebuggerInBuild”static bool EnableDebuggerInBuild => GetJsonParamsOrDefault().EnableDebuggerInBuild;Returns true if the DevTools debugger is enabled in all build configurations.
variable DebuggerPort
Section titled “variable DebuggerPort”static int DebuggerPort => GetJsonParamsOrDefault().DebuggerPort;Returns the DevTools debugger port.
variable LoggingSeverity
Section titled “variable LoggingSeverity”static Severity LoggingSeverity => GetJsonParamsOrDefault().Params.LoggingFilters.MinimumSeverity;Returns the logging severity of the Cohtml Library parameters.
© 2026 Coherent Labs. All rights reserved.