Documentation

Unity Engine


Unity Engine


FocalLengthToFieldOfView(float, float)

Converts focal length to field of view.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static float FocalLengthToFieldOfView(float focalLength, float sensorSize)

Parameters

focalLength

Focal length in millimeters.

sensorSize

Sensor size in millimeters. Use the sensor height to get the vertical field of view. Use the sensor width to get the horizontal field of view.

Returns

Type

Description

floatfield of view in degrees.