Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Physical Camera Inspector window reference for URP

Reference for the Physical Camera component Inspector window.
Read time 5 minutesLast updated 13 days ago

The physical camera properties enable the URP camera to simulate a real-world camera. These properties correspond to features of real-world cameras and work in the same way.
For more information about how to use some of these properties to create the camera effect you desire, refer to Using Physical Cameras.
Note
When the Physical Camera is in use, Unity calculates the Field of View with the following properties
  • Sensor Size
  • Focal Length
  • Shift
The Physical Camera properties are split into the following sections:

Camera Body

Property

Description

Sensor TypeSpecify the real-world camera format you want the camera to simulate. When you choose a camera format, Unity sets the Sensor Size > X and Y properties to the correct values automatically.

URP offers the following camera format presets:
  • 8mm:
    • X: 4.8
    • Y: 3.5
  • Super 8mm:
    • X: 5.79
    • Y: 4.01
  • 16mm:
    • X: 10.26
    • Y: 7.49
  • Super 16mm:
    • X: 12.522
    • Y: 7.417
  • 35mm 2-perf:
    • X: 21.95
    • Y: 9.35
  • 35mm Academy:
    • X: 21.946
    • Y: 16.002
  • Super-35:
    • X: 24.89
    • Y: 18.66
  • 35mm TV Projection:
    • X: 20.726
    • Y: 15.545
  • 35mm Full Aperture:
    • X: 24.892
    • Y: 18.669
  • 35mm 1.85 Projection:
    • X: 20.955
    • Y: 11.328
  • 35mm Anamorphic:
    • X: 21.946
    • Y: 18.593
  • 65mm ALEXA:
    • X: 54.12
    • Y: 25.59
  • 70mm:
    • X: 52.476
    • Y: 23.012
  • 70mm IMAX:
    • X: 70.41
    • Y: 52.63
  • Custom:
    • Set the X and Y values manually

If you change the Sensor Size values manually, Unity automatically sets this property to Custom.
Sensor SizeSet the size, in millimeters, of the camera sensor.

Unity sets the X and Y values automatically when you choose the Sensor Type.
    XThe horizontal size of the camera sensor.
    YThe vertical size of the camera sensor.
ISOThe light sensitivity of the camera sensor.
Shutter SpeedThe amount of time the camera sensor captures light.
    UnitThe unit of measurement for Shutter Speed.

Available options:
  • Second
  • 1/Second
Gate FitOptions for changing the size of the resolution gate (size/aspect ratio of the game view) relative to the film gate (size/aspect ratio of the Physical Camera sensor).

For more information about resolution gate and film gate, refer to the documentation on Physical Cameras.
    VerticalFits the resolution gate to the height of the film gate.

If the sensor aspect ratio is larger than the game view aspect ratio, Unity crops the rendered image at the sides.

If the sensor aspect ratio is smaller than the game view aspect ratio, Unity overscans the rendered image at the sides.

When you choose this setting, any change to the sensor width (Sensor Size > X) has no effect on the rendered image.
    HorizontalFits the resolution gate to the width of the film gate.

If the sensor aspect ratio is larger than the game view aspect ratio, Unity overscans the rendered image on the top and bottom.

If the sensor aspect ratio is smaller than the game view aspect ratio, Unity crops the rendered image on the top and bottom.

When you choose this setting, any change to the sensor height (Sensor Size > Y) has no effect on the rendered image.
    FillFits the resolution gate to either the width or height of the film gate, whichever is smaller. This crops the rendered image.
    OverscanFits the resolution gate to either the width or height of the film gate, whichever is larger. This overscans the rendered image.
    NoneIgnores the resolution gate and uses the film gate only. This stretches the rendered image to fit the game view aspect ratio.

Lens

Property

Description

Focal LengthThe distance, in millimeters, between the camera sensor and the camera lens.

Lower values result in a wider Field of View, and vice versa.

When you change this value, Unity automatically updates the Field of View property accordingly.
ShiftShifts the lens horizontally or vertically from center. Values are multiples of the sensor size; for example, a shift of 0.5 along the X axis offsets the sensor by half its horizontal size.

You can use lens shifts to correct distortion that occurs when the camera is at an angle to the subject (for example, converging parallel lines).

Shift the lens along either axis to make the camera frustum oblique.
    XThe lens's horizontal offset from the camera sensor.
    YThe lens's vertical offset from the camera sensor
ApertureThe f-stop (f-number) of the lens. A lower value gives a wider lens aperture.
Focus DistanceThe distance from the camera where objects appear sharp when you enable Depth of Field.
Note
When Physical Camera properties are in use at the same time as Depth of Field post-processing, the Lens properties directly affect the Depth of Field effect. This requires you to adjust both the Depth of Field properties and the Lens properties to create the effect you want.

Aperture Shape

Property

Description

Blade CountThe number of blades in the lens aperture. A higher value gives a rounder aperture shape.
CurvatureThe curvature of the lens aperture blades.
Barrel ClippingThe self-occlusion of the lens. A higher value creates a cat's eye effect.
AnamorphismThe amount of vertical stretch of the camera sensor to make the sensor taller or shorter. A higher value increases the stretch of the sensor to simulate an anamorphic look.