Method TessellateRectBorder
TessellateRectBorder(Rect, float, out Vector2[], out ushort[])
Tessellates a rectangle border.
Declaration
public static void TessellateRectBorder(Rect rect, float halfThickness, out Vector2[] vertices, out ushort[] indices)
Parameters
Type | Name | Description |
---|---|---|
Rect | rect | Rectangle to tessellate |
float | halfThickness | The half-thickness of the border |
Vector2[] | vertices | The output vertices |
ushort[] | indices | The output triangles |