Method ToNativePathUnits
ToNativePathUnits(float, PositionUnits)
Get the path position to native path 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 ToNativePathUnits(float pos, CinemachinePathBase.PositionUnits units)
Parameters
Type | Name | Description |
---|---|---|
float | pos | The value to convert from |
CinemachinePathBase.PositionUnits | units | The units in which pos is expressed |
Returns
Type | Description |
---|---|
float | The path position, in native units |