Simple tool for either prototyping and iterating over novel map / level designs, or tracing out preexisting meshes / textures into voxel maps (see the accompanying videos for an example of each). Essentially, it works by creating a map base, upon which 3D tiles can be placed and stacked.
Setup:
- Attach the MapBuilder script to an empty game object.
Usage:
- Toggle the "Enter / Exit edit mode" button to start / stop editing;
- Tweak the MapBuilder component to your liking (in the inspector);
- Left-click an empty grid cell will instantiate the currently selected tile prefab at that location;
- Right-click a previously placed tile to destroy it;
- Left-mouse-drag to draw a path onto which tiles will be instantiated once the drag ends;
- Right-mouse-drag to delete all tiles of the same type of the one over which the mouse cursor is at the onset of the drag;
- Suggestion: set the scene view to isometric (instead of perspective) and select the top view when first starting to work on a map.