This Tile Map Editor built in Unity provides a set of tools to easily create a tilemap with multiple layers and collision. Through the creation of a custom editor I was able to add a way to “paint” tiles into the scene.
The editor creates a world object in the scene, parented to this object are several layers with chunks of tiles parented to each of these layers. Currently there are three built in layers, Background, Player, and Collision. The user can add as many layers as they would like and order them however they would like. The user can not rename the three built in layers and can not put any layers under the Background layer, as this is intended to be the lowest layer at all times.
Each layer is made up of chunks, each chunk is currently an area of 11 x 11 tiles. This number is subject to change in the future and might be exposed to the user so they can improve render times by making larger chunks.
All of the code for this project can be found on GitHub at TileEngine.