Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/CiaccoDavide/Unity-UI-Polygon
Polygon renderer for the new Unity UI
https://github.com/CiaccoDavide/Unity-UI-Polygon
Last synced: about 1 month ago
JSON representation
Polygon renderer for the new Unity UI
- Host: GitHub
- URL: https://github.com/CiaccoDavide/Unity-UI-Polygon
- Owner: CiaccoDavide
- License: mit
- Created: 2015-12-14T16:35:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-03-11T08:55:39.000Z (over 3 years ago)
- Last Synced: 2024-02-07T08:18:20.744Z (4 months ago)
- Language: C#
- Size: 4.88 KB
- Stars: 582
- Watchers: 30
- Forks: 97
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-stars - Unity-UI-Polygon
- awesome-unity-open-source-on-github - Unity-UI-Polygon - Polygon renderer (Shape)
- awesome-unity3d - Unity-UI-Polygon - Polygon renderer for the new Unity UI (Open Source Repositories / UI)
- awesome-opensource-unity - Unity-UI-Polygon - Polygon renderer for the new Unity UI. (Open Source Packages / UI)
- awesome - CiaccoDavide/Unity-UI-Polygon - Polygon renderer for the new Unity UI (C\#)
- AwesomeUnityCommunity - Unity UI Polygon - Polygon renderer for the new Unity UI. (:bar_chart: UI <a name="ui"></a> / Control Components <a name="ui-controls-components"></a>)
- awesome-unity - Unity UI Polygon - Polygon renderer for the new Unity UI. (:bar_chart: UI <a name="ui"></a> / Control Components <a name="ui-controls-components"></a>)
README
# Unity-UI-Polygon
Polygon renderer for the new Unity UIThis 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](https://bitbucket.org/ddreaper/unity-ui-extensions), but this script works also on its own: just import it in your Unity project.
## Usage
Make sure that "UIPolygon.cs" in imported in your project folder.
Add the Canvas:
> ![](http://ciaccodavide.altervista.org/storage/uipolygon/tut_00_addCanvas.png)
Create an empty object:
> ![](http://ciaccodavide.altervista.org/storage/uipolygon/tut_01_createEmpty.png)
Add the script to the empty object:
> ![](http://ciaccodavide.altervista.org/storage/uipolygon/tut_02_addUIPoly.png)
Edit the polygon properties as you like!
> ![](http://ciaccodavide.altervista.org/storage/uipolygon/tut_03_edit.png)
## Edit your polygon
> ![](http://ciaccodavide.altervista.org/storage/uipolygon/sides.gif)
> ![](http://ciaccodavide.altervista.org/storage/uipolygon/deformation.gif)
> ![](http://ciaccodavide.altervista.org/storage/uipolygon/rothikness.gif)
> ![](http://ciaccodavide.altervista.org/storage/uipolygon/rotation.gif)
Examples:
> ![](http://ciaccodavide.altervista.org/storage/uipolygon/shapes.png)
> ![](http://ciaccodavide.altervista.org/storage/uipolygon/screen0.png)
> ![](http://ciaccodavide.altervista.org/storage/uipolygon/screen1.png)
## Need help?
Contact me [here](http://ciaccodavi.de/about)!