Skip to content
SiteEmail

cohtml.CohtmlSystemSettings

A class holding settings for the CohtmlUISystem component.

Inherits from MonoBehaviour

Name
ISystemSettingsToNativeSettings()
The settings passed to the native CohtmlUISystem component.
ITextTransformationManagerGetTextTransformationManager()
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.
voidSetTextTransformationManager(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.
Name
virtual voidOnDestroy()
Name
boolEnableDebugger
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.
boolEnableDebuggerInBuild
Controls whether the DevTools debugger should be enabled in the built player.
intDebuggerPort
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.
IResourceHandlerResourceHandler
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.
ILocalizationManagerLocalizationManager
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.
Name
const intDefaultDebuggerPort
The default port used to connect to the DevTools debugger.
UnityEventOnResourceHandlerAssign
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.
UnityEventOnLocalizationManagerAssign
Assign a custom Localization manager for the instantiated system. If not assigned will assign default Cohtml localization manager implementation.
UnityEventOnTextTransformationManagerAssign
Assign a custom Text transformation manager for the instantiated system. If not assigned will assign a default Cohtml text transformation manager implementation.
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.

virtual void OnDestroy()
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.

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.

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.

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.

const int DefaultDebuggerPort = 9444;

The default port used to connect to the DevTools debugger.

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.

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.