Description
ILckCamera defines the contract for cameras managed within LCK. It ensures every camera has a unique identifier (CameraId), can be activated or deactivated with a RenderTexture as its output target, and exposes its Unity Camera component for direct access.
Within LCK, this interface allows the service (ILckService) and mediator components to register, switch, and control cameras in a consistent way, regardless of whether the implementation is the built-in LckCamera or a custom one.
Usage
To use a camera with the system, implementILckCamera in your own component. See LckCamera for a simple implementation example.
References
Properties
| Property | Type | Description |
|---|---|---|
| CameraId | string | Unique identifier for this camera instance |
Methods
| Method | Returns | Description |
|---|---|---|
| ActivateCamera(RenderTexture) | void | Activates the camera and sets its render target. |
| DeactivateCamera() | void | Deactivates the camera and clears its render target. |
| GetCameraComponent() | Camera | Returns the underlying Unity Camera component for direct access. |