Description
LckMonitor
is a component implementing ILckMonitor
that represents a display surface (monitor) in the LCK.It manages a unique monitor ID for registration with the
LckCamera
and provides a RenderTexture output for connected LckCamera
instances.
Applications can subscribe to the OnRenderTextureSet
event to receive updates whenever a new RenderTexture is assigned.
Usage
- Add an
LckMonitor
component to a GameObject to represent a display target. - The monitor will automatically register itself with the LCK system at runtime.
- Subscribe to
OnRenderTextureSet
to update UI or 3D objects with the capture output.
Example
References
Fields
Field | Type | Description |
---|---|---|
_monitorId | string | Unique identifier for this monitor instance. |
Properties
Property | Type | Description |
---|---|---|
MonitorId | string | The unique identifier for this monitor. |
Events
Event | Type | Description |
---|---|---|
OnRenderTextureSet | LckMonitorRenderTextureSetDelegate(RenderTexture renderTexture) | Invoked whenever a new RenderTexture is assigned to this monitor. |
Methods
Method | Returns | Description |
---|---|---|
SetRenderTexture(RenderTexture) | void | Assigns a new RenderTexture to the monitor and triggers the event. |