Camera.GateFitMode
Enum used to specify how the sensor gate (sensor frame) defined by Camera.sensorSize fits into the resolution gate (render frame).
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Enum
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public enum Camera.GateFitMode
Fields
Value | Description |
|---|---|
| Fill | Automatically selects a horizontal or vertical fit so that the sensor gate fits completely inside the resolution gate. |
| Horizontal | Fit the resolution gate horizontally within the sensor gate. |
| None | Stretch the sensor gate to fit exactly into the resolution gate. |
| Overscan | Automatically selects a horizontal or vertical fit so that the render frame fits completely inside the resolution gate. |
| Vertical | Fit the resolution gate vertically within the sensor gate. |