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
Name | Description | |
---|---|---|
LensSettings |
Explicit constructor for this LensSettings
|
Methods
Name | Description | |
---|---|---|
FromCamera |
Creates a new LensSettings, copying the values from the
supplied Camera
| |
Lerp |
Linearly blends the fields of two LensSettings and returns the result
| |
Validate | Make sure lens settings are sane. Call this from OnValidate(). |
Fields
Name | Description | |
---|---|---|
Default | Default Lens Settings | |
Dutch |
The dutch (tilt) to be applied to the camera. In degrees
| |
FarClipPlane |
The far clip plane for this LensSettings
| |
FieldOfView |
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
| |
NearClipPlane |
The near clip plane for this LensSettings
| |
OrthographicSize |
When using an orthographic camera, this defines the height, in world
co-ordinates, of the camera view.
|
See Also