기술 자료

Unity Engine

Unity Engine

FocalLengthToFieldOfView(float, float)

Converts focal length to field of view.
읽는 시간 1분최근 업데이트: 한 달 전

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.