LensSettings Structure

Cinemachine

LensSettings Structure

Describes the FOV and clip planes for a camera. This generally mirrors the Unity Camera's lens settings, and will be used to drive the Unity camera when the vcam is active.

Namespace:  Cinemachine
Assembly:  Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
[SerializableAttribute]
[DocumentationSortingAttribute(2f, DocumentationSortingAttributeLevel.UserRef)]
public struct LensSettings
JavaScript supports the use of structures, but not the declaration of new ones.

The LensSettings type exposes the following members.

Constructors
  NameDescription
Public methodLensSettings
Explicit constructor for this LensSettings
Top
Methods
  NameDescription
Public methodStatic memberFromCamera
Creates a new LensSettings, copying the values from the supplied Camera
Public methodStatic memberLerp
Linearly blends the fields of two LensSettings and returns the result
Public methodValidate
Make sure lens settings are sane. Call this from OnValidate().
Top
Fields
  NameDescription
Public fieldStatic memberDefault
Default Lens Settings
Public fieldDutch
The dutch (tilt) to be applied to the camera. In degrees
Public fieldFarClipPlane
The far clip plane for this LensSettings
Public fieldFieldOfView
This is the camera view in vertical degrees. For cinematic people, a 50mm lens on a super-35mm sensor would equal a 19.6 degree FOV
Public fieldNearClipPlane
The near clip plane for this LensSettings
Public fieldOrthographicSize
When using an orthographic camera, this defines the height, in world co-ordinates, of the camera view.
Top
See Also