Skip to content
SiteEmail

cohtml.Library

A class responsible for initializing the native Cohtml Library and rendering module. Creates, destroys and manages the native Cohtml plugin objects.

Name
voidLoadModuleDependencies()
Loads the dependencies of the Cohtml library.
voidRestoreProcessPath()
Removes the plugin dll folder from the PATH environment variable.
voidSetDependenciesPath()
Adds the plugin dll folder to the PATH environment variable.
IUISystemCreateUISystem(ISystemSettings settings)
Creates a native IUISystem object with the provided settings.
voidExecuteCSharpBackendCommandBuffer()
Executes the C# rendering backend command buffer if enabled.
voidDispose()
The Library is disposed of after all native Systems and Views, as well as their Cohtml references and objects, have already been destroyed.
voidExecuteWork(WorkType type)
Instructs the native library to execute the provided work type.
voidScheduleWork(WorkType type)
Schedules a task with the provided work type.
voidCreateLibrary()
Initializes the native library object and its dependencies.
Name
UnityPluginListenerUnityPluginListener
An instance the UnityPluginListener object.
ILibraryInstance
Returns a Singleton instance of the native ILibrary object.
CompositorUnityCompositor
An instance of the Compositor object allowing the user to use features such as Compositor and Surface Partitioning.
Name
UnityBackendRenderingBackend
Returns an instance of the current Unity3D rendering backend.
boolShouldUseCSharpBackend
Returns true if the C# rendering backend should be used.
ILibraryParamsLibraryParams
Returns the native LibraryParams object.
boolIsLibraryInitialized
Returns true if the library is successfully initialized.
static void LoadModuleDependencies()

Loads the dependencies of the Cohtml library.

static void RestoreProcessPath()

Removes the plugin dll folder from the PATH environment variable.

static void SetDependenciesPath()

Adds the plugin dll folder to the PATH environment variable.

static IUISystem CreateUISystem(
ISystemSettings settings
)

Creates a native IUISystem object with the provided settings.

function ExecuteCSharpBackendCommandBuffer

Section titled “function ExecuteCSharpBackendCommandBuffer”
static void ExecuteCSharpBackendCommandBuffer()

Executes the C# rendering backend command buffer if enabled.

static void Dispose()

The Library is disposed of after all native Systems and Views, as well as their Cohtml references and objects, have already been destroyed.

static void ExecuteWork(
WorkType type
)

Instructs the native library to execute the provided work type.

static void ScheduleWork(
WorkType type
)

Schedules a task with the provided work type.

static void CreateLibrary()

Initializes the native library object and its dependencies.

static UnityPluginListener UnityPluginListener;

An instance the UnityPluginListener object.

static ILibrary Instance;

Returns a Singleton instance of the native ILibrary object.

static Compositor UnityCompositor;

An instance of the Compositor object allowing the user to use features such as Compositor and Surface Partitioning.

static UnityBackend RenderingBackend => s_Backend;

Returns an instance of the current Unity3D rendering backend.

static bool ShouldUseCSharpBackend => LibraryParamsManager.ShouldUseCSharpBackend;

Returns true if the C# rendering backend should be used.

static ILibraryParams LibraryParams => LibraryParamsManager.LibraryParams;

Returns the native LibraryParams object.

static bool IsLibraryInitialized => s_Library != null;

Returns true if the library is successfully initialized.