Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

xMin

The minimum X value of the RectInt.

yMin

The minimum Y value of the RectInt.

width

Width of the rectangle.

height

Height of the rectangle.

RectInt(Vector2Int, Vector2Int)

Creates a new RectInt.
public RectInt(Vector2Int position, Vector2Int size)

Parameters

position

The position (x, y) of the rectangle.

The width (x) and height (y) of the rectangle.