Create your first Dungeon
Install Dungeon Architect
Install and import Dungeon Architect from the Asset Store. You should see the following folders:
![Ut 01 da folders Ut 01 da folders](dungeon-architect-docs/ut-01-da_folders.png)
Setup Dungeon Prefab
Create a new Scene
Navigate to CodeRespawn > DungeonArchitect > Prefabs
and drop in the DungeonGrid
prefab on to the scene
![Ut 01 drop grid prefab Ut 01 drop grid prefab](dungeon-architect-docs/ut-01-drop_grid_prefab.png)
Select the dungeon game object and inspect the properties. We'll need to assign a new theme before we can build the dungeon
![Ut 01 select dungeon go Ut 01 select dungeon go](dungeon-architect-docs/ut-01-select_dungeon_go.png)
![Ut 01 da dungeon prop Ut 01 da dungeon prop](dungeon-architect-docs/ut-01-da_dungeon_prop.png)
Assign Theme
Assign an existing theme to the dungeon actor
Navigate to
Assets\DungeonArchitect_Samples\Demo_Theme_Candy\Themes
Assign theme file named
CandyDungeonTheme
as shown in the image below
![Ut 01 dungeon assign theme Ut 01 dungeon assign theme](dungeon-architect-docs/ut-01-dungeon_assign_theme.png)
Build Dungeon
Select the DungeonGrid
game object and click the Build Dungeon
button in the Inspector window
![Ut 01 build dungeon Ut 01 build dungeon](dungeon-architect-docs/ut-01-build_dungeon.png)
![Ut 01 candy dungeon Ut 01 candy dungeon](dungeon-architect-docs/ut-01-candy_dungeon.jpg)
Randomize Dungeon
Select the DungeonGrid
game object and change the Seed value in the configuration. Changing this value will create a dungeon with a different layout
![Ut 01 rand dungeon Ut 01 rand dungeon](dungeon-architect-docs/ut-01-rand_dungeon.png)
Click Build Dungeon
button to rebuild the dungeon with the new seed
Organization
All the dungeon objects are created on the root hierarchy and makes it difficult to organize. We'll configure it so all objects are spawned under a certain game object
![Ut 01 org01 Ut 01 org01](dungeon-architect-docs/ut-01-org01.png)
Lets destroy this current dungeon, configure it for better organization and then rebuild
Destroy Existing Dungeon
Search for dungeon
on the hierarchy search box
![Ut 01 org02 Ut 01 org02](dungeon-architect-docs/ut-01-org02.png)
Select the DungeonGrid game object and click the Destroy Dungeon
button
Clear out the search text box in the hierarchy. Your hierarchy should now look like this
![Ut 01 org04 Ut 01 org04](dungeon-architect-docs/ut-01-org04.png)
Configure Parent Object
Create an empty Game Object. All our dungeon items will go inside this parent object
![Create an empty game object Create an empty game object](dungeon-architect-docs/ut-01-create_empty.png)
Rename the parent object (e.g. Dungeon Items
)
![Ut 01 org05 Ut 01 org05](dungeon-architect-docs/ut-01-org05.png)
Select the parent object and Reset the transform
![Ut 01 org06 Ut 01 org06](dungeon-architect-docs/ut-01-org06.png)
![Ut 01 org07 Ut 01 org07](dungeon-architect-docs/ut-01-org07.png)
Select the parent object and set it to static
![Ut 01 org08 Ut 01 org08](dungeon-architect-docs/ut-01-org08.png)
Assign the parent object to the GridDungeon game object
![Ut 01 org09 Ut 01 org09](dungeon-architect-docs/ut-01-org09.png)
Rebuild Dungeon
Select the GridDungeon game object and click Build Dungeon
All your dungeon game objects will be organized under the parent object
![Ut 01 org10 Ut 01 org10](dungeon-architect-docs/ut-01-org10.png)