Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TessellateRectBorder(Rect, float, out Vector2[], out ushort[])

Tessellates a rectangle border.
Read time 1 minuteLast updated 10 days ago

Definition

TessellateRectBorder(Rect, float, Vector2[], ushort[])

public static void TessellateRectBorder(Rect rect, float halfThickness, out Vector2[] vertices, out ushort[] indices)

Parameters

rect

Rectangle to tessellate

halfThickness

The half-thickness of the border

vertices

The output vertices

indices

The output triangles