RectInt
Creates a new RectInt.
Read time 1 minuteLast updated 6 days ago
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.
RectInt(Vector2Int, Vector2Int)
Creates a new RectInt.
public RectInt(in Vector2Int position, in Vector2Int size)
Parameters
The position (x, y) of the rectangle.
The width (x) and height (y) of the rectangle.