Method StandardizeUnit
StandardizeUnit(float, PositionUnits)
Standardize the unit, so that it lies between MinUmit and MaxUnit
Declaration
public virtual float StandardizeUnit(float pos, CinemachinePathBase.PositionUnits units)
Parameters
| Type | Name | Description |
|---|---|---|
| float | pos | The value to be standardized |
| CinemachinePathBase.PositionUnits | units | The unit type |
Returns
| Type | Description |
|---|---|
| float | The standardized value of pos, between MinUnit and MaxUnit |