Skip to main content

Rect.Set(number x, number y, number width, number height)

Set components of an existing Rect.

Parameters:

NameTypeDescription
xnumberx
ynumbery
widthnumberwidth
heightnumberheight

Usage

---@type Rect
local rect;

---@type number
local x;

---@type number
local y;

---@type number
local width;

---@type number
local height;


rect.Set(x, y, width, height)