cohtml.UnityPluginListener
Helper class providing plugin events to the user giving flexibility and allowing to customize the initialization of the ILibrary and IUISystem objects.
Inherits from cohtml.Net.IUnityPluginListener, SystemIDisposable
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| override void | OnPreloadedTextureReleased(IntPtr texturePtr) Invoked when a preloaded texture is released from Cohtml. |
| override void | OnUserImageDropped(IntPtr texturePtr) Invoked when a user image is dropped by Cohtml. |
| virtual override void | OnWorkAvailable(WorkType type) Invoked when Cohtml has work available. Schedules a task with the provided work type. |
| virtual override void | Dispose() |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| Action< IntPtr > | PreloadedTextureReleased Invoked when a preloaded texture is released from Cohtml. |
| Func< ILibrary > | OnInitializeLibrary Subscribe to create a custom Cohtml Library initialization. |
| Func< ISystemSettings, IUISystem > | OnInitializeSystem Subscribe to create a custom Cohtml UISystem initialization. |
| Func< bool > | OnHaveLicenseCheck Subscribe to provide a Cohtml license check. Return true if the license is empty or invalid. |
Additional inherited members
Section titled “Additional inherited members”Public Functions inherited from cohtml.Net.IUnityPluginListener
| Name | |
|---|---|
| IUnityPluginListener() | |
| delegate void | SwigDelegateIUnityPluginListener_0(global.System.IntPtr texturePtr, global.System.IntPtr swigId) |
| delegate void | SwigDelegateIUnityPluginListener_1(global.System.IntPtr texturePtr, global.System.IntPtr swigId) |
| delegate void | SwigDelegateIUnityPluginListener_2(int type, global.System.IntPtr swigId) |
Protected Attributes inherited from cohtml.Net.IUnityPluginListener
| Name | |
|---|---|
| bool | swigCMemOwn |
Public Functions Documentation
Section titled “Public Functions Documentation”function OnPreloadedTextureReleased
Section titled “function OnPreloadedTextureReleased”override void OnPreloadedTextureReleased( IntPtr texturePtr)Invoked when a preloaded texture is released from Cohtml.
function OnUserImageDropped
Section titled “function OnUserImageDropped”override void OnUserImageDropped( IntPtr texturePtr)Invoked when a user image is dropped by Cohtml.
function OnWorkAvailable
Section titled “function OnWorkAvailable”virtual override void OnWorkAvailable( WorkType type)Invoked when Cohtml has work available. Schedules a task with the provided work type.
Reimplements: cohtml.Net.IUnityPluginListener.OnWorkAvailable
function Dispose
Section titled “function Dispose”virtual override void Dispose()Reimplements: cohtml.Net.IUnityPluginListener.Dispose
Public Attributes Documentation
Section titled “Public Attributes Documentation”variable PreloadedTextureReleased
Section titled “variable PreloadedTextureReleased”Action< IntPtr > PreloadedTextureReleased;Invoked when a preloaded texture is released from Cohtml.
variable OnInitializeLibrary
Section titled “variable OnInitializeLibrary”Func< ILibrary > OnInitializeLibrary;Subscribe to create a custom Cohtml Library initialization.
variable OnInitializeSystem
Section titled “variable OnInitializeSystem”Func< ISystemSettings, IUISystem > OnInitializeSystem;Subscribe to create a custom Cohtml UISystem initialization.
variable OnHaveLicenseCheck
Section titled “variable OnHaveLicenseCheck”Func< bool > OnHaveLicenseCheck;Subscribe to provide a Cohtml license check. Return true if the license is empty or invalid.
© 2026 Coherent Labs. All rights reserved.