Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

FillAutomatically selects a horizontal or vertical fit so that the sensor gate fits completely inside the resolution gate.
HorizontalFit the resolution gate horizontally within the sensor gate.
NoneStretch the sensor gate to fit exactly into the resolution gate.
OverscanAutomatically selects a horizontal or vertical fit so that the render frame fits completely inside the resolution gate.
VerticalFit the resolution gate vertically within the sensor gate.