Mathf.Clampstatic function Clamp (value : float, min : float, max : float) : floatDescriptionClamps a value between a minimum float and maximum float value.
JavaScript
// Set the position of the transform to be that of the time using UnityEngine; import UnityEngine static function Clamp (value : int, min : int, max : int) : intDescriptionClamps value between min and max and returns value.
JavaScript
// Clamps the value 10 to be between 1 and 3. using UnityEngine; import UnityEngine |
