Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public Camera.GateFitMode gateFit { get; set; }

Remarks

To use this property, enable Camera.usePhysicalProperties. Additional Resources: Camera.GateFitMode enum.