Data type
Rect
A value that represents a two-dimensional rectangle.
About Rect
Rect describes a rectangle on a 2D plane. It is constructed using two
corners, either two Vector2 positions or four numbers:
local rect1 = Rect.new(Vector2.new(10, 10), Vector2.new(80, 80))
local rect2 = Rect.new(10, 10, 80, 80)
This data type is used in the ImageLabel.SliceCenter property which
determines the center area of a scaled image.
Constructors 3
Properties 4
Min
: Vector2The coordinates of the top-left corner.Max
: Vector2The coordinates of the bottom-right corner.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.