Scripting API

CameraState

struct in Unity.Cinemachine · Unity.Cinemachine

13 of 14 of Unity's members
In Tassix

A camera's pose and lens as a virtual camera's pipeline builds it: the raw pose components set, corrections extensions add, the up and look-at reference points.

Fields 11

BlendHints BlendHint
Quaternion OrientationCorrection
Vector3 PositionCorrection
Quaternion RawOrientation
Vector3 RawPosition
Vector3 ReferenceLookAt
Vector3 ReferenceUp
Quaternion RotationDampingBypass
float ShotQuality
static Vector3 kNoPoint

Marks an unset point (no look-at target).

Properties 1

static CameraState Default { get; }

Methods 6

Quaternion GetCorrectedOrientation()
Vector3 GetCorrectedPosition()
Quaternion GetFinalOrientation()

The corrected orientation, rolled by the lens's dutch angle.

Vector3 GetFinalPosition()
bool HasLookAt()
static CameraState Lerp(in CameraState stateA, in CameraState stateB, float t)

Blends two states: positions and lenses lerp, orientations slerp (aiming at a blended look-at point when both have one).

Not in Tassix yet 1

AddCustomBlendable