Method FromPathNativeUnits
FromPathNativeUnits(float, PositionUnits)
Convert a path position from native path units to the desired units. If the distance cache is not valid, then calling this will trigger a potentially costly regeneration of the path distance cache
Declaration
public float FromPathNativeUnits(float pos, CinemachinePathBase.PositionUnits units)
Parameters
Type | Name | Description |
---|---|---|
float | pos | The value to convert from, in native units |
CinemachinePathBase.PositionUnits | units | The units to convert to |
Returns
Type | Description |
---|---|
float | Tha path position, in the requested units |