LensSettings.Lerp Method

Cinemachine

LensSettingsLerp Method

Linearly blends the fields of two LensSettings and returns the result

Namespace:  Cinemachine
Assembly:  Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public static LensSettings Lerp(
	LensSettings lensA,
	LensSettings lensB,
	float t
)
Cinemachine.LensSettings.Lerp = function(lensA, lensB, t);

Parameters

lensA
Type: CinemachineLensSettings
The LensSettings to blend from
lensB
Type: CinemachineLensSettings
The LensSettings to blend to
t
Type: SystemSingle
The interpolation value. Internally clamped to the range [0,1]

Return Value

Type: LensSettings
Interpolated settings
See Also