Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/NotWoods/unity-polygon-2d-editor
Uses the collider of a PolygonCollider2D to generate a mesh for a Unity GameObject.
https://github.com/NotWoods/unity-polygon-2d-editor
collider level-editor mesh-generation tool unity
Last synced: about 2 months ago
JSON representation
Uses the collider of a PolygonCollider2D to generate a mesh for a Unity GameObject.
- Host: GitHub
- URL: https://github.com/NotWoods/unity-polygon-2d-editor
- Owner: NotWoods
- License: mit
- Created: 2016-07-07T04:25:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-14T00:49:10.000Z (over 5 years ago)
- Last Synced: 2024-11-16T07:34:30.922Z (about 2 months ago)
- Topics: collider, level-editor, mesh-generation, tool, unity
- Language: C#
- Homepage:
- Size: 191 KB
- Stars: 126
- Watchers: 9
- Forks: 20
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unity-open-source-on-github - unity-polygon-2d-editor - Uses the collider of a PolygonCollider2D to generate a mesh for a GameObject (Generator)
README
# Polygon2D Editor for Unity
![Example usage animation](example.gif)
Uses the PolygonCollider2D collider to generate a mesh for a gameobject,
letting you draw polygonal platforms in the Unity edtior via the Edit Collider button.
Just drag the script onto your platform GameObject and you're good to go.This script uses the [Triangulator](http://wiki.unity3d.com/index.php?title=Triangulator) class.
## Installing / Getting started
Just **[download the script](PolygonMesh2D.cs)** and place it somewhere inside your Unity project's assets.
Everything needed in contained within one file.Use the component by dragging it onto a GameObject or by using the Add Component dialog. This will automatically add a Polygon Collider 2D component if it isn't already present.
In the Polygon Collider 2D Component, click the "Edit Collider" button to adjust the shape of the collider. The mesh will autoatically adjust itself to fill the collider.
## Licensing
Licsenced under the [MIT License](./LICENSE).