CVR Camera Helper
CVR Camera Helper Whitelisted: WP
Section titled “CVR Camera Helper ”Takes screenshots or renders a camera with optional replacement shaders.
Fields
Section titled “Fields”| Name | Type | Description |
|---|---|---|
cam | Camera | Target camera used for rendering and screenshots. Required for TakeScreenshot to succeed. |
setAsMirroringCamera | bool | Marks the camera as a mirror / reference camera. Consumed by surrounding systems. |
replacementShaders | List<Shader> | Shaders available for override. The editor picks one via selectedShader. |
selectedShader | int | Index into replacementShaders. -1 (default) resets to the camera’s own shader each frame. |
Methods
Section titled “Methods”| Name | Description |
|---|---|
TakeScreenshot() | Captures the current render texture through CVRPlatformGalleryHelper.TakePicture. |
AnimEventTakeScreenshot(AnimationEvent) | Animation-event entry point; gated by AnimationEventsHelper.CanExecute. |
- Cooldown: Screenshots are rate-limited to one per second.
- Shader Override: If
selectedShaderis set and valid, it replaces the camera’s shader; otherwise, the camera uses its default.
Related
Section titled “Related”Source
Section titled “Source”CVR-GameFiles/ABI.CCK.Components/CVRCameraHelper.cs