Description
LckCamera is a component that integrates a standard Camera into the LIV Capture Kit (LCK) system.It ensures proper registration with the
LckMediator, manages activation/deactivation for capture, and provides access to the underlying Unity Camera component.
Usage
- Add an
LckCameracomponent to a GameObject with a Unity Camera. - The camera will automatically register itself with the LCK system at runtime.
- Use
ILckService.SetActiveCamera(cameraId)to switch between registered cameras. - Cameras are automatically deactivated when not in use.
Example
References
Fields
| Field | Type | Description |
|---|---|---|
| _camera | Camera | Reference to the Unity Camera component. |
| _cameraId | string | Unique identifier for this camera instance. |
Properties
| Property | Type | Description |
|---|---|---|
| CameraId | string | The unique identifier for this camera. |
Methods
| Method | Returns | Description |
|---|---|---|
| ActivateCamera(RenderTexture) | void | Enables the camera and sets its targetTexture for capture. |
| DeactivateCamera() | void | Disables the camera and clears its targetTexture. Should not be called directly. |
| GetCameraComponent() | Camera | Returns the underlying Unity Camera component. |