Clamp
Clamps the Vector2Int to the bounds given by min and max.
Read time 1 minuteLast updated 7 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
Clamp(Vector2Int, Vector2Int)
Clamps the to the bounds given by and .
Vector2Intminmaxpublic void Clamp(Vector2Int min, Vector2Int max)
Parameters
Clamp(Vector2Int, Vector2Int)
Clamps the to the bounds given by and .
Vector2Intminmaxpublic void Clamp(in Vector2Int min, in Vector2Int max)