How-To: Expose Camera Options as User Settings
Goal: let players tune the camera from an options menu - field of view, screen-shake intensity, occlusion fade, camera lag, and auto-recenter. CrimsonCamera exposes a runtime setter for each; any system can call them, and on the full Crimson stack CrimsonCore applies a player's saved choices for you.
UCrimsonCameraComponent and a working third-person mode (Quick Start). For occlusion options, the pawn also has a UCrimsonCameraOcclusionComponent.Camera.FieldOfView) and CrimsonCore's player camera manager reads the saved values and applies them each frame. See the CrimsonSettings wiki -> How-To: Expose Another Plugin's Settings. The setters below are what that layer calls - and what you call directly when using CrimsonCamera standalone.1. Field of view (absolute override)
Set Field Of View Override sets an absolute FOV applied after the per-mode blend, so every mode renders at that FOV. Pass 0 (or less) to clear it and fall back to each mode's authored FOV.
showdebug camera), and it holds when you switch to aim / lock-on.0) to restore per-mode FOVs.2. Screen-shake intensity
Set Camera Shake Scale stores a persistent multiplier applied to the Scale of every shake played through Play Camera Shake (default 1.0; 0 disables shakes routed through the component).
UCrimsonCameraComponent::PlayCameraShake. Shakes started directly on the player camera manager bypass it.0 and component-routed shakes stop; set 0.5 and the same hit shakes at half strength.3. Occlusion fade (on/off + strength)
On the pawn's UCrimsonCameraOcclusionComponent, Set Occlusion Enabled(false) turns fading off and snaps any faded geometry back to its original material; Set Occlusion Fade Strength(0..1) sets how far occluders fade.
4. Camera lag & auto-recenter (runtime)
How-To: Add Camera Lag & Recenter sets these once on the mode. To change them live from an options menu, fetch the active third-person mode and call its setters.
See also
- CrimsonSettings wiki -> How-To: Expose Another Plugin's Settings - wire these to a player options screen with zero glue.
- How-To: Add Camera Lag & Recenter - the mode properties these setters drive.
- How-To: Fade Occluding Geometry - the occlusion component setup.