CameraState.Lerp Method

Cinemachine

CameraStateLerp Method

Intelligently blend the contents of two states.

Namespace:  Cinemachine
Assembly:  Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public static CameraState Lerp(
	CameraState stateA,
	CameraState stateB,
	float t
)
Cinemachine.CameraState.Lerp = function(stateA, stateB, t);

Parameters

stateA
Type: CinemachineCameraState
The first state, corresponding to t=0
stateB
Type: CinemachineCameraState
The second state, corresponding to t=1
t
Type: SystemSingle
How much to interpolate. Internally clamped to 0..1

Return Value

Type: CameraState
Linearly interpolated CameraState
See Also