top of page
Clamping numbers
float num = TScriptUt.Clamp(num, minValue, maxValue)
​
This is a basic clamping mechanism to clamp numbers between 2 values. You need to specify the start imput number(num) and the min and max value. This acts in a similar way to Mathf.Clamp (a default unity feature).
bottom of page