cohtml.Library
A class responsible for initializing the native Cohtml Library and rendering module. Creates, destroys and manages the native Cohtml plugin objects.
Public Functions
Name | |
---|---|
void | LoadModuleDependencies() Loads the dependencies of the Cohtml library. |
void | RestoreProcessPath() Removes the plugin dll folder from the PATH environment variable. |
void | SetDependenciesPath() Adds the plugin dll folder to the PATH environment variable. |
IUISystem | CreateUISystem(ISystemSettings settings) Creates a native IUISystem object with the provided settings. |
void | ExecuteCSharpBackendCommandBuffer() Executes the C# rendering backend command buffer if enabled. |
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. |
void | ExecuteWork(WorkType type) Instructs the native library to execute the provided work type. |
void | ScheduleWork(WorkType type) Schedules a task with the provided work type. |
void | CreateLibrary() Initializes the native library object and its dependencies. |
Public Properties
Name | |
---|---|
UnityPluginListener | UnityPluginListener An instance the UnityPluginListener object. |
ILibrary | Instance Returns a Singleton instance of the native ILibrary object. |
Compositor | UnityCompositor An instance of the Compositor object allowing the user to use features such as Compositor and Surface Partitioning. |
Public Attributes
Name | |
---|---|
bool | ShouldUseCSharpBackend Returns true if the C# rendering backend should be used. |
ILibraryParams | LibraryParams Returns the native LibraryParams object. |
bool | IsLibraryInitialized Returns true if the library is successfully initialized. |
Public Functions Documentation
function LoadModuleDependencies
static void LoadModuleDependencies()
Loads the dependencies of the Cohtml library.
function RestoreProcessPath
static void RestoreProcessPath()
Removes the plugin dll folder from the PATH environment variable.
function SetDependenciesPath
static void SetDependenciesPath()
Adds the plugin dll folder to the PATH environment variable.
function CreateUISystem
static IUISystem CreateUISystem(
ISystemSettings settings
)
Creates a native IUISystem object with the provided settings.
function ExecuteCSharpBackendCommandBuffer
static void ExecuteCSharpBackendCommandBuffer()
Executes the C# rendering backend command buffer if enabled.
function Dispose
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.
function ExecuteWork
static void ExecuteWork(
WorkType type
)
Instructs the native library to execute the provided work type.
function ScheduleWork
static void ScheduleWork(
WorkType type
)
Schedules a task with the provided work type.
function CreateLibrary
static void CreateLibrary()
Initializes the native library object and its dependencies.
Public Property Documentation
property UnityPluginListener
static UnityPluginListener UnityPluginListener;
An instance the UnityPluginListener object.
property Instance
static ILibrary Instance;
Returns a Singleton instance of the native ILibrary object.
property UnityCompositor
static Compositor UnityCompositor;
An instance of the Compositor object allowing the user to use features such as Compositor and Surface Partitioning.
Public Attributes Documentation
variable ShouldUseCSharpBackend
static bool ShouldUseCSharpBackend => LibraryParamsManager.ShouldUseCSharpBackend;
Returns true if the C# rendering backend should be used.
variable LibraryParams
static ILibraryParams LibraryParams => LibraryParamsManager.LibraryParams;
Returns the native LibraryParams object.
variable IsLibraryInitialized
static bool IsLibraryInitialized => s_Library != null;
Returns true if the library is successfully initialized.