cohtml.CohtmlSystemSettings
A class holding settings for the CohtmlUISystem component.
Inherits from MonoBehaviour
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| ISystemSettings | ToNativeSettings() The settings passed to the native CohtmlUISystem component. |
| ITextTransformationManager | GetTextTransformationManager() Get the Text transformation manager for the instantiated system. First trying to get custom text transformation manager, assigned from user. If not assigned from user will assign default Cohtml text transformation manager implementation. |
| void | SetTextTransformationManager(ITextTransformationManager value) Set the Text transformation manager for the system. The initialization must be done before the system is created in order to work correctly. If it is changed after the system has been created, the change will not be applied. |
Protected Functions
Section titled “Protected Functions”| Name | |
|---|---|
| virtual void | OnDestroy() |
Public Properties
Section titled “Public Properties”| Name | |
|---|---|
| bool | EnableDebugger Initialize the internal field and the nativeSettings property with the provided new value. Validates the boolean against other related properties - EnableDebuggerInBuild, DebuggerPort, and Unity3D Engine settings. |
| bool | EnableDebuggerInBuild Controls whether the DevTools debugger should be enabled in the built player. |
| int | DebuggerPort Sets the port for the DevTools debugger to connect and inspect the active CohtmlView components. |
| IDictionary< string, List< string > > | HostLocationsMap A collection storing lists with host locations related to resource loading. |
| IResourceHandler | ResourceHandler Resource handler for the instantiated system. Trying to get custom resource handler, assigned from user. If not assigned from user, will get default implementation of Cohtml resource handler. |
| ILocalizationManager | LocalizationManager Localization manager for the instantiated system. First trying to get custom localization manager, assigned from user. If not assigned from user will assign default Cohtml localization manager implementation. |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| const int | DefaultDebuggerPort The default port used to connect to the DevTools debugger. |
| UnityEvent | OnResourceHandlerAssign Assign a custom Resource handler for the instantiated system before create a native System object. If not assigned will get the default implementation of Cohtml resource handler. |
| UnityEvent | OnLocalizationManagerAssign Assign a custom Localization manager for the instantiated system. If not assigned will assign default Cohtml localization manager implementation. |
| UnityEvent | OnTextTransformationManagerAssign Assign a custom Text transformation manager for the instantiated system. If not assigned will assign a default Cohtml text transformation manager implementation. |
Public Functions Documentation
Section titled “Public Functions Documentation”function ToNativeSettings
Section titled “function ToNativeSettings”ISystemSettings ToNativeSettings()The settings passed to the native CohtmlUISystem component.
function GetTextTransformationManager
Section titled “function GetTextTransformationManager”ITextTransformationManager GetTextTransformationManager()Get the Text transformation manager for the instantiated system. First trying to get custom text transformation manager, assigned from user. If not assigned from user will assign default Cohtml text transformation manager implementation.
function SetTextTransformationManager
Section titled “function SetTextTransformationManager”void SetTextTransformationManager( ITextTransformationManager value)Set the Text transformation manager for the system. The initialization must be done before the system is created in order to work correctly. If it is changed after the system has been created, the change will not be applied.
Protected Functions Documentation
Section titled “Protected Functions Documentation”function OnDestroy
Section titled “function OnDestroy”virtual void OnDestroy()Public Property Documentation
Section titled “Public Property Documentation”property EnableDebugger
Section titled “property EnableDebugger”bool EnableDebugger;Initialize the internal field and the nativeSettings property with the provided new value. Validates the boolean against other related properties - EnableDebuggerInBuild, DebuggerPort, and Unity3D Engine settings.
There is a need for both a field and a native object, and for updating both of them. This is because the native object is part of the native logic and cannot be serialized outside the runtime.
property EnableDebuggerInBuild
Section titled “property EnableDebuggerInBuild”bool EnableDebuggerInBuild;Controls whether the DevTools debugger should be enabled in the built player.
property DebuggerPort
Section titled “property DebuggerPort”int DebuggerPort;Sets the port for the DevTools debugger to connect and inspect the active CohtmlView components.
There is a need for both a field and a native object, and for updating both of them. This is because the native object is part of the native logic and cannot be serialized outside the runtime.
property HostLocationsMap
Section titled “property HostLocationsMap”IDictionary< string, List< string > > HostLocationsMap;A collection storing lists with host locations related to resource loading.
property ResourceHandler
Section titled “property ResourceHandler”IResourceHandler ResourceHandler;Resource handler for the instantiated system. Trying to get custom resource handler, assigned from user. If not assigned from user, will get default implementation of Cohtml resource handler.
property LocalizationManager
Section titled “property LocalizationManager”ILocalizationManager LocalizationManager;Localization manager for the instantiated system. First trying to get custom localization manager, assigned from user. If not assigned from user will assign default Cohtml localization manager implementation.
Public Attributes Documentation
Section titled “Public Attributes Documentation”variable DefaultDebuggerPort
Section titled “variable DefaultDebuggerPort”const int DefaultDebuggerPort = 9444;The default port used to connect to the DevTools debugger.
variable OnResourceHandlerAssign
Section titled “variable OnResourceHandlerAssign”UnityEvent OnResourceHandlerAssign = new UnityEvent();Assign a custom Resource handler for the instantiated system before create a native System object. If not assigned will get the default implementation of Cohtml resource handler.
variable OnLocalizationManagerAssign
Section titled “variable OnLocalizationManagerAssign”UnityEvent OnLocalizationManagerAssign = new UnityEvent();Assign a custom Localization manager for the instantiated system. If not assigned will assign default Cohtml localization manager implementation.
variable OnTextTransformationManagerAssign
Section titled “variable OnTextTransformationManagerAssign”UnityEvent OnTextTransformationManagerAssign = new UnityEvent();Assign a custom Text transformation manager for the instantiated system. If not assigned will assign a default Cohtml text transformation manager implementation.
© 2026 Coherent Labs. All rights reserved.