Cinemachine
![]() | CinemachinePathBaseNormalizeUnit Method |
Normalize the unit, so that it lies between MinUmit and MaxUnit
Namespace: Cinemachine
Assembly: Cinemachine (in Cinemachine.dll) Version: 2.0.0.0 (2.0.0.0)

public virtual float NormalizeUnit( float pos, CinemachinePathBasePositionUnits units )
function NormalizeUnit(pos, units);
Parameters
- pos
- Type: SystemSingle
The value to be normalized - units
- Type: CinemachineCinemachinePathBasePositionUnits
The unit type
Return Value
Type: SingleThe normalized value of pos, between MinUnit and MaxUnit
