CinemachinePathBase.NormalizePathDistance Method

Cinemachine

CinemachinePathBaseNormalizePathDistance Method

Normalize a distance along the path based on the path length. If the distance cache is not valid, then calling this will trigger a potentially costly regeneration of the path distance cache

Namespace:  Cinemachine
Assembly:  Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public float NormalizePathDistance(
	float distance
)
function NormalizePathDistance(distance);

Parameters

distance
Type: SystemSingle
The distance to normalize

Return Value

Type: Single
The normalized distance, ranging from 0 to path length
See Also