ClampToBounds
Clamps the position and size of the RectInt to the given bounds.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
ClampToBounds(RectInt)
Clamps the position and size of the to the given bounds.
RectIntpublic void ClampToBounds(RectInt bounds)
Parameters
Bounds to clamp the .
RectIntClampToBounds(RectInt)
Clamps the position and size of the to the given bounds.
RectIntpublic void ClampToBounds(in RectInt bounds)
Parameters
Bounds to clamp the .
RectInt