Scripting API

LensSettings

struct in Unity.Cinemachine · Unity.Cinemachine

17 of 17 of Unity's members
In Tassix

A virtual camera's lens: field of view or orthographic size, clip planes, dutch.

Constructors 1

LensSettings(float verticalFOV, float orthographicSize, float nearClip, float farClip, float dutch)

Fields 7

float Dutch
float FarClipPlane
float FieldOfView
OverrideModes ModeOverride
float NearClipPlane
float OrthographicSize
PhysicalSettings PhysicalProperties

Properties 4

float Aspect { get; }

Width over height, from the camera the lens drives.

static LensSettings Default { get; }
bool IsPhysicalCamera { get; }
bool Orthographic { get; }

Methods 6

static bool AreEqual(ref LensSettings a, ref LensSettings b)
void CopyCameraMode(ref LensSettings fromLens)
static LensSettings FromCamera(Camera fromCamera)
static LensSettings Lerp(LensSettings lensA, LensSettings lensB, float t)
void Lerp(in LensSettings lensB, float t)
void PullInheritedPropertiesFromCamera(Camera camera)

The camera's projection mode and aspect, which a lens without an override takes.

void Validate()