Method FromPathNativeUnits
FromPathNativeUnits(float, PositionUnits)
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
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 toexpressed |
Returns
| Type | Description |
|---|---|
| float | The length of the path in distance units, when sampled at this rate |