Skip to main content

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, implement ILckCamera in your own component. See LckCamera for a simple implementation example.

References

Properties

PropertyTypeDescription
CameraIdstringUnique identifier for this camera instance

Methods

MethodReturnsDescription
ActivateCamera(RenderTexture)voidActivates the camera and sets its render target.
DeactivateCamera()voidDeactivates the camera and clears its render target.
GetCameraComponent()CameraReturns the underlying Unity Camera component for direct access.
I