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
선언
public float ToNativePathUnits(float pos, CinemachinePathBase.PositionUnits units)
파라미터
타입 | 이름 | 설명 |
---|---|---|
float | pos | The value to convert from |
CinemachinePathBase.PositionUnits | units | The units in which pos is expressed |
반환
타입 | 설명 |
---|---|
float | The length of the path in native units, when sampled at this rate |