기술 자료

Unity Engine

Unity Engine

MakeRectangleShape

Builds a rectangle shape.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

MakeRectangleShape(Shape, Rect)

Builds a rectangle shape.
public static void MakeRectangleShape(Shape rectShape, Rect rect)

Parameters

rectShape

The shape object that will be filled with a rectangle.

rect

The position and dimensions of the rectangle.

MakeRectangleShape(Shape, Rect, Vector2, Vector2, Vector2, Vector2)

Builds a rectangle shape.
public static void MakeRectangleShape(Shape rectShape, Rect rect, Vector2 radiusTL, Vector2 radiusTR, Vector2 radiusBR, Vector2 radiusBL)

Parameters

rectShape

The shape object that will be filled with a rectangle.

rect

The position and dimensions of the rectangle.

radiusTL

The top-left radius of the rectangle

radiusTR

The top-right radius of the rectangle

radiusBR

The bottom-right radius of the rectangle

radiusBL

The bottom-left radius of the rectangle