Method ToNativePathUnits
ToNativePathUnits(float, PositionUnits)
Get the path position (in native path units) corresponding to the psovided value, in the units indicated. 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 length of the path in native units, when sampled at this rate |