Skip to content

CVR Camera Helper

CVR Camera Helper Whitelisted: WP

Section titled “CVR Camera Helper ”

Takes screenshots or renders a camera with optional replacement shaders.

NameTypeDescription
camCameraTarget camera used for rendering and screenshots. Required for TakeScreenshot to succeed.
setAsMirroringCameraboolMarks the camera as a mirror / reference camera. Consumed by surrounding systems.
replacementShadersList<Shader>Shaders available for override. The editor picks one via selectedShader.
selectedShaderintIndex into replacementShaders. -1 (default) resets to the camera’s own shader each frame.
NameDescription
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 selectedShader is set and valid, it replaces the camera’s shader; otherwise, the camera uses its default.

CVR-GameFiles/ABI.CCK.Components/CVRCameraHelper.cs