MakeRectangleShape
Builds a rectangle shape.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: Unity.VectorGraphics
- Assembly: UnityEngine.VectorGraphicsModule
MakeRectangleShape(Shape, Rect)
Builds a rectangle shape.
public static void MakeRectangleShape(Shape rectShape, Rect rect)
Parameters
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
The shape object that will be filled with a rectangle.
The position and dimensions of the rectangle.
The top-left radius of the rectangle
The top-right radius of the rectangle
The bottom-right radius of the rectangle
The bottom-left radius of the rectangle