Method MakeRectangleShape
MakeRectangleShape(Shape, Rect)
Builds a rectangle shape.
Declaration
public static void MakeRectangleShape(Shape rectShape, Rect rect)
Parameters
Type | Name | Description |
---|---|---|
Shape | rectShape | The shape object that will be filled with a rectangle. |
Rect | rect | The position and dimensions of the rectangle. |
MakeRectangleShape(Shape, Rect, Vector2, Vector2, Vector2, Vector2)
Builds a rectangle shape.
Declaration
public static void MakeRectangleShape(Shape rectShape, Rect rect, Vector2 radiusTL, Vector2 radiusTR, Vector2 radiusBR, Vector2 radiusBL)
Parameters
Type | Name | Description |
---|---|---|
Shape | rectShape | The shape object that will be filled with a rectangle. |
Rect | rect | The position and dimensions of the rectangle. |
Vector2 | radiusTL | The top-left radius of the rectangle |
Vector2 | radiusTR | The top-right radius of the rectangle |
Vector2 | radiusBR | The bottom-right radius of the rectangle |
Vector2 | radiusBL | The bottom-left radius of the rectangle |