CinemachinePathBase.GetPathPositionFromDistance Method

Cinemachine

CinemachinePathBaseGetPathPositionFromDistance Method

Get the path position (in path units) corresponding to this distance along the path. 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 GetPathPositionFromDistance(
	float distance
)
function GetPathPositionFromDistance(distance);

Parameters

distance
Type: SystemSingle

[Missing <param name="distance"/> documentation for "M:Cinemachine.CinemachinePathBase.GetPathPositionFromDistance(System.Single)"]

Return Value

Type: Single
The length of the path in distance units, when sampled at this rate
See Also