ClampToBounds(RectInt)
Clamps the position and size of the RectInt to the given bounds.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public void ClampToBounds(RectInt bounds)
Parameters
Bounds to clamp the RectInt.