Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


MakeRectangleShape

Builds a rectangle shape.
Read time 1 minuteLast updated 5 days ago

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