Rect

사용되지 않는 항목 표시

The Rect describes a rectangle on a 2D plane. It is constructed using two of its corners, either using two Vector2 form or as four numbers:


Rect.new(Vector2.new(1, 2), Vector2.new(3, 4))
Rect.new(1, 2, 3, 4)

The Rect data type is used in the ImageLabel.SliceCenter property, which determines the center area of a scaled image.

요약

생성자

속성

생성자

new

new

매개 변수

min: Vector2
max: Vector2

new

매개 변수

minX: number
minY: number
maxX: number
maxY: number

속성

Width

The width of the Rect in pixels.

Height

The height of the Rect in pixels.

The top-left corner.

The bottom-right corner.