Mathf-Clamp - Unity スクリプトリファレンス

Clamps the given value between the given minimum float and maximum float values. Returns the given value if it is within the minimum and maximum range.