Polygon renderer for the new Unity UI
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.md Update README.md Jul 18, 2017
UIPolygon.cs Create UIPolygon.cs Dec 14, 2015



Polygon renderer for the new Unity UI

This is a graphic control for drawing polygons in the UI System.

[UI > Extensions > Primitives > UI Polygon]

I wrote this script as an addition to the extension project for the new Unity UI system mantained by Simon "ddreaper" Jackson (https://bitbucket.org/ddreaper/unity-ui-extensions) and because I needed to draw an hexagon in one of my games ui.

I really recommend to try out the Unity UI Extensions, but this script works also on its own: just import it in your Unity project.


Make sure that "UIPolygon.cs" in imported in your project folder.

Add the Canvas:

Create an empty object:

Add the script to the empty object:

Edit the polygon properties as you like!

Edit your polygon


Need help?

Contact me here!