ドキュメント

Unity Engine

Unity Engine

MakeRectangleShape

Builds a rectangle shape.
読み終わるまでの所要時間 1 分最終更新 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