The Dungeon Painter tool will use some ScriptableObjects as Datas for generating the Dungeon.
The main Datas object is the DungeonDatas. This one will keep datas of all the dungeon cells. It will also keep a reference to the DungeonBrush.
DungeonBrush will handle all the brushes ans layouts. You can make multiple DungeonBrushes and share one between multiple DungeonDatas to re-use the same brushes.
DungeonCellBuildingBrush and DungeonCellDetailsBrush keeps datas about the brush
The DungeonCellBuildingLayout and DungeonCellDetailsLayout are embeded inside the Brushes and provide informations about how the dungeons cells will be generated (Walls, floor, details,...). I've designed the tool so that it is easy for you to create your own Layouts if you want something more complex.
DungeonCells is the Prefab used to spawn all the cells.
Dungeon is the dungeon prefab on which all the cells will be attached.
Tool Header : Allows you to perform operation like :
Tool modes : Choose the current tool mode :
Cell grid : You see here the plans of your dungeons. Hold mouse right click and drag to move the view. Click on the CenterView button to center the view to the origin.
Current mode options : The options for the current tool mode.
Dungeon Datas : Set whatare the datas the tool will use
Brushes : Set the Datas for brushes.
You can share DungeonDatas or Brushes between multiple Dungeons. Make sure these two values are setup before you paint anything.
You can then select/add/remove your brushes
Brush group : Cells which are on the same group won't create wall between them. It's really usefull when you want to use different brushes for a single room.
Automatically place walls : Choose if the walls should be automatically placed
Automatically place doors : Choose if the doors should be automatically placed
Use double doors : If checked, two doors meshes will be spawn at door intersections.
Layout : Choose your layout. You can create you own layout if you want more complexe behaviors. The simple layout allows you to place walls, doors, floor and corners.
Refresh : Re-create the cells
Save : Save the datas and update the Dungeons in the scene (Don't forget to save the datas before exiting the tool !).
Dungeon Datas and Brushes : same as Paint Building
You can select/add/remove your brushes and set their visual (size, color, texture)
Layout : Choose your layout. You can create you own layout if you want more complexe behaviors. The simple layout allows you to place multiple items and modify their location :
This mode Allows you to select cell(s) and edit them.
When one cell is celected, you can modify its walls and corners
Select the DungeonCell prefab and change the size and height parameter of the cell. It must be the same cell as the one you've linked in your dungeon prefab.