Map Creator
Description
Is a tool for placing tile objects on a grid, and can also be used to place default objects using a variety of custom settings and tools.
How To Create
In the Unity toolbar, select:
Spirit604/MapEditor/Create/Map Editor
![]()
Structure
Prefabs
MapCreator's scroll view consists of prefab categories.
Category - it’s a prefab set, create categories according to your needs.
How To Create Category
Click
+button to start adding category.Enter category name.
Click
Addbutton.Note
To delete a category, select category and click the
-button.
How To Add Prefab
- Drag & drop desirable prefabs to drop tab.
![]()
- Prefabs are ready to use.
![]()
Note
MapTile component is used in order to calculate intersections of objects on the grid without colliders, so if you don’t need it, you can use default game objects.
Category
- Prefab data:
- MapTile category parent type:
Local map path : object is created relative to the path of the MapCreator layer.
Scene path : object is created relative to the path of the scene root.
Layer
MapCreator layers is used to configure the display, selection, removal of objects of the selected layer in the scene and display in the inspector, depending on the selected edit mode.
![]()
- Show all layers [if disabled]:`
Selected `MapTile` layer
Disable other object layers : turn off objects in the scene with the improper layer.
Adjust the layers for displaying objects in the inspector according to their layer.
![]()
![]()
![]()
Show only Layer1 objects example.
![]()
Show only Layer2 objects example.
![]()
Show only Overlay objects example.
Selected Info
Information about the last selected prefab.
Configs
Cached Values Settings
Map Data Holder Settings
Here are references to the maps and the names of the layers.
Map Preference Config
Common Settings
Tool Settings
M (select MapCreator) UI button on the scene view.Temp Mesh Settings
- Default Draw Mesh Typeobject view type for temporary meshes.
Draw Mesh : display the temporary mesh object at the end of a render pipeline cycle.
Draw Mesh Now : the display of the temporary mesh object at the moment.
- Temp Overlay Mesh Grid Settings
Mesh Surface Offset : offset from surface to mesh grid (object visual bounds).
Common Settings
- Async Creationasync instantiation of the objects.
Create Objects Per Frame : the number of instantiated objects per frame.
- Create Prefab Mode:
Linked prefab : created object will be linked with source prefab.
Prefab clone : created object will be cloned from source prefab.
Hotkeys
Common Hotkey Config
Custom Hotkey Settings
- Single mode:
Ctrl & scroll wheel button : increasing and decreasing the scale of the object.
- Line mode:
- Default:
Ctrl & scroll wheel button : increase number of the floors (multi-floor support should be enabled).
- Curved:
- Simple line:
Ctrl & left-mouse click : add a new segment of the line.
- Area mode:
- Default:
Ctrl & scroll wheel button : increase number of the floors (multi-floor support should be enabled).
- Destroy mode:
- Selection mode:
Space : deleting selected objects using the selection box.