- Home /
How to draw 2D polygon?
I want to draw a polygon like the above to represent different abilities of certain character. My first thought is to use GUI but I'm not sure which function to use. Thanks for help.
Possibly use Vectrosity.
It's really "not so easy" to do this - you may have to go to building your own mesh, which is a hassle for something so simple.
Get the asset "Dynamic Circles" from the asset store to see the code to do this.
2015 -- just use the great package linked below by Ciacco
Answer by ciaccodavide · Dec 15, 2015 at 02:49 AM
If you want to draw polygons in the new UI check this out: https://github.com/CiaccoDavide/Unity-UI-Polygon
Answer by huse · Dec 01, 2017 at 04:31 PM
You can draw a disc with only 5 segments and you get a polygon:
https://youtu.be/j4tu5isuhfc?list=PLp2zpxnnEFue9M04Q6Dkqxkp2vPrt7EO8
Your answer
Follow this Question
Related Questions
Question about GUILayout not appearing 2 Answers
Unlocking & "Equipping" Colors onto Sprites with c# 2 Answers
determine what button was clicked? 1 Answer
Linking GUI input with script 2 Answers