Unity UI Extensions

UIPolygon

Graphic control for drawing custom polygons in the UI System


Contents

1 Overview

2 Properties

3 Methods

4 Usage

5 Video Demo

6 See also

7 Credits and Donation

8 External links


Overview

Advanced polygon control with support for multiple vertices which can be manipulated to control the look and feel of the primitive

UI Polygon Inspector


Methods

This component does not expose public methods beyond inherited behaviour.


Usage

Add the primitive control to your scene using:

GameObject -> UI -> Extensions -> Primitives -> UI Polygon

Properties

Property Description
Vertices List of vertex positions defining the polygon.
Thickness Stroke thickness when rendering as an outline.
Fill Render as filled polygon when enabled.
Preserve Aspect Maintain aspect ratio when resizing.
Border Optional border size around the polygon.

Alternatively, add the component using:

Add Component -> UI -> Extensions -> Primitives -> UI Polygon


Video Demo

UI Polygon Inspector


See also

DiamondGraph


Credits and Donation

CiaccoDavide


Sourced from