# gateFit

> There are two gates for a camera, the sensor gate and the resolution gate. The physical camera sensor gate is defined by the Camera.sensorSize property, the resolution gate is defined by the render target area.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public Camera.GateFitMode gateFit { get; set; }
```

### Remarks

To use this property, enable [Camera.usePhysicalProperties](/engine/6000.7/script-reference/unityengine/camera/usephysicalproperties.md). Additional Resources: [Camera.GateFitMode](/engine/6000.7/script-reference/unityengine/camera/gatefitmode.md) enum.
