Mathf.Clamp.md 162 B

#unity/日常积累

如果需要设置一个数字在某个范围区间,使用Mathf.Clamp就可以了; 语法上:

Mathf.Clamp(value,min,max)