RectInt
Creates a new RectInt.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Constructor
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
RectInt(int, int, int, int)
Creates a new RectInt.
public RectInt(int xMin, int yMin, int width, int height)
Parameters
RectInt(Vector2Int, Vector2Int)
Creates a new RectInt.
public RectInt(Vector2Int position, Vector2Int size)
Parameters
The position (x, y) of the rectangle.
The width (x) and height (y) of the rectangle.