> ## Documentation Index
> Fetch the complete documentation index at: https://xrlive.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Camera Settings

> Control field of view and depth-of-field on the xRLive camera from the component Details panel or at runtime via Blueprint

The `xrlive_UIpanelComponent` exposes three camera properties that are applied automatically when the visual starts. You can also call **Apply Camera Settings** at any point at runtime to push updated values.

Settings are applied to both the **FollowCamera** (`UCameraComponent`) and the **RenderGame1** scene capture (`USceneCaptureComponent2D`) on the spawned `xRLive_Camera` actor, so the rendered output always matches the editor preview.

## Properties

Set these in the component **Details panel** before Play, or write to them from Blueprint at runtime before calling **Apply Camera Settings**.

| Property              | Default     | Description                                                                                                                             |
| --------------------- | ----------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| **Field of View**     | `92°`       | Horizontal FOV applied to both the camera and the scene capture component. Clamped 5–170°.                                              |
| **Sensor Width (mm)** | `24.576 mm` | Physical sensor width used by the depth-of-field model (Lens → Depth of Field → Sensor Width).                                          |
| **Focal Distance**    | `0.0`       | Distance in Unreal units at which the scene is in sharp focus (Lens → Depth of Field → Focal Distance). Set to `0` to disable DOF blur. |

<Note>
  Sensor Width and Focal Distance set the `bOverride` flags automatically, so they take effect even if the camera's post-process volume priority is lower than a scene volume.
</Note>

## Blueprint node

**Apply Camera Settings**

|              |                     |
| ------------ | ------------------- |
| **Category** | `Camera`            |
| **Type**     | `BlueprintCallable` |

Pushes the current values of **Field of View**, **Sensor Width**, and **Focal Distance** from the component to the spawned camera. Call this after changing any of the three properties at runtime.

```
Event BeginPlay (or any trigger)
    ↓
Set Field Of View (on xrlive_UIpanelComponent) → 75.0
    ↓
Apply Camera Settings (on xrlive_UIpanelComponent)
```

## Which components are affected

| Component on xRLive\_Camera              | Property set                                                                                                  |
| ---------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| `FollowCamera` (UCameraComponent)        | `FieldOfView`, `PostProcessSettings.DepthOfFieldSensorWidth`, `PostProcessSettings.DepthOfFieldFocalDistance` |
| `RenderGame1` (USceneCaptureComponent2D) | `FOVAngle`, `PostProcessSettings.DepthOfFieldSensorWidth`, `PostProcessSettings.DepthOfFieldFocalDistance`    |

<Warning>
  Depth-of-field blur only renders when a DOF method is enabled on the camera or a post-process volume. Setting **Focal Distance** alone does not produce blur if the DOF method is **Off**. Enable **Cinematic DOF** or **Gaussian DOF** in your camera's post-process settings or a scene Post Process Volume.
</Warning>
