LunaTMX - Unity3D Tilemap Importer
A small library to import and render tilemap in Unity (for 2D Development), only support TMX file format.
Features
- Import TMX Map into a Texture2D
- Support Auto-Detect Collision with Polygon Collider 2D
- Support as many as you want tilesets for a layer
Usage
Tiles
Draw and naming your layers, be careful with naming, layer with
prefix will have a collider component.
[SIZE=3][B]Collision[/B][/SIZE]
Name your layer with [C] prefix for automatically detecting collision.
[SIZE=3][B]Save TMX[/B][/SIZE]
Use CSV data type and save with .TMX extension, then change that extension into .XML.
[SIZE=3][B]Unity Usage[/B][/SIZE]
1. Create a folder inside Asset directory named Resources
2. Import all scripts, also import TMX files
3. Import all Tilesets image into a folder inside Resources directory we created above, also set those Texture Type to Advanced and tick Read/Write Enabled box
4. Add TileMap.cs to an empty Game Object and follow the instruction.
__[B][SIZE=4]Source Code[/SIZE][/B]__
[URL="https://github.com/suppayami/unity2d-tmx"]Get it on Github[/URL]
__[B][SIZE=4]License and Credit[/SIZE][/B]__
© 2014, [URL="https://twitter.com/SuppaYami"]@SuppaYami[/URL] - Cuong Nguyen
Released under the MIT license
Check LICENSE for more details.