Class FieldOfViewToFocalLength
A component that synchronizes the field of view of a camera with its focal length.
Implements
Inherited Members
Namespace: Unity.LiveCapture .Cameras
Assembly: Unity.LiveCapture.Cameras.dll
Syntax
[ExecuteAlways]
[RequireComponent(typeof(Camera))]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.live-capture@4.0/manual/ref-component-field-of-view-to-focal-length.html")]
public sealed class FieldOfViewToFocalLength : MonoBehaviour, IPreviewable
Remarks
When the camera is using physical properties, Unity ignores any field of view value set from an animation clip. This component allows the field of view to be animated while maintaining the correct focal length. When not using physical properties, the component will update the field of view field to match the camera's one.
Properties
FieldOfView
The field of view of the camera.
Declaration
public float FieldOfView { get; set; }
Property Value
Type | Description |
---|---|
float |