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)

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: SingleThe length of the path in distance units, when sampled at this rate
