# Dungeon Architect

**URL:** <https://forums.unrealengine.com/t/dungeon-architect/28094>\
**Category:** Game Development\
**Tags:** unreal-engine\
**Created:** [April 22, 2015, 12:27pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094 "2015-04-22T12:27:43Z")\
**Posts on this page:** 20\
**Page:** 56

<div class="post-metadata">

**Author:** ![DrinkThisPotion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DrinkThisPotion](https://forums.unrealengine.com/u/DrinkThisPotion)\
**Post date:** [October 17, 2016, 7:38pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1117 "2016-10-17T19:38:16Z")

</div>

> [@Laurentius;610179](#):
>
> Hi,  
> I just bought your plugin and I have some questions. My game should use DA to generate dungeons at runtime using the grid builder approach where the dungeon level has one entrance and one or no exit.
> 
> 1. How do I let DA place an entrance (e.g. a special wall) and an exit that are far away from each other?
> 2. How do I player the PlayerStart location and orientation at the entrance (or exit if going upwards from a lower level) of the dungeon?
> 3. Can I place special prefabricated rooms in the runtime dungeon? (like exit, entrance, jail etc.)
> 
> Maybe I miss something obvious as I’m new to Dungeon Architect?
> 
> Thanks for your great plugin,  
> Lars

Hi Lars,  
I am working on this problem as well. One thing to try is to use a GridDungeonPlatform at the edge of the dungeon, set the cell type to “room” and then use a theme override volume with an empty theme along one of the walls of the platform. In the empty theme volume build the door into the dungeon.

The only problem I’m seeing with this is that if you’re building the dungeon at runtime and you have a height variation \> 0, there’s a that the platform will not match the Z value of the door you built. I have contacted the author to see if there’s a workaround.

---

<div class="post-metadata">

**Author:** ![DrinkThisPotion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DrinkThisPotion](https://forums.unrealengine.com/u/DrinkThisPotion)\
**Post date:** [October 17, 2016, 7:48pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1118 "2016-10-17T19:48:53Z")

</div>

Dungeon Architect User Group

Hey fellow DA enthusiasts - does anyone want to share notes on what we’ve learned? I’ve gone through all the videos and done quite a bit of experimentation on my own. I have some learned some pretty neat tricks, but I’m also up against what seem to be some limitations. I plan to make some tutorial videos on some of the finer points I’ve learned. I’ll share those when I finish them.

Has anyone gone advanced with building your own marker emitters? I built one to emit in the center of rooms which is working very well. However I’m very interested in going deeper as it seems the possibilities are powerful.

Specifically, when getting the bounds of rooms and corridors, does anyone understand that model very well? I’d love to chat.

If anyone’s interested, 's a blueprint marker emitter I made for the center of the room. It is based on one of the DA author’s demo emitters with few a very minor tweaks.

 ![roomcenteremitter.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/a/32ab989c149f8b7301bcaf326d7a6042042ff85e.png)

---

<div class="post-metadata">

**Author:** ![Laurentius](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Laurentius](https://forums.unrealengine.com/u/Laurentius)\
**Post date:** [October 17, 2016, 9:58pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1119 "2016-10-17T21:58:20Z")

</div>

> [@DrinkThisPotion;610679](#):
>
> Hi Lars,  
> I am working on this problem as well. One thing to try is to use a GridDungeonPlatform at the edge of the dungeon, set the cell type to “room” and then use a theme override volume with an empty theme along one of the walls of the platform. In the empty theme volume build the door into the dungeon.
> 
> The only problem I’m seeing with this is that if you’re building the dungeon at runtime and you have a height variation \> 0, there’s a that the platform will not match the Z value of the door you built. I have contacted the author to see if there’s a workaround.

Hi DrinkThisPotion!  
Thanks for you suggestion - I have not thought about using GridDungenPlatform and ThemeOverideVolume for dungeons build at runtime … might get handy to add special rooms inside of the dungeon.  
But I think there is no way to make sure that the runtime dungeon actually hits these volumes - but I’ll experiment with this to see what I can get from it.

But there must be an build in way for runtime dungeons - you have to out the time a player searches through a dungeon level by separating entrance and exit (and some special goals/quest items) far away from each other.  
… and what’s the purpose of a dungeon without an entrance … 😉

Edit: just discovered that a GridDungeonPlatformer of type Room is always connected - great!

---

<div class="post-metadata">

**Author:** ![DrinkThisPotion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DrinkThisPotion](https://forums.unrealengine.com/u/DrinkThisPotion)\
**Post date:** [October 17, 2016, 11:22pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1120 "2016-10-17T23:22:25Z")

</div>

> [@Laurentius;610758](#):
>
> Hi DrinkThisPotion!  
> Edit: just discovered that a GridDungeonPlatformer of type Room is always connected - great!

Yes, let me know if you find a way to deal with the elevation issue. (or if you even run into it)

---

<div class="post-metadata">

**Author:** ![RedSaturnSix](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RedSaturnSix](https://forums.unrealengine.com/u/RedSaturnSix)\
**Post date:** [October 18, 2016, 7:48am UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1121 "2016-10-18T07:48:46Z")

</div>

Does anyone have a video or written tutorial for SnapDungeonBuilder functionality? I checked on’s youtube page where he has a demo of it, but no explanation or set up. MTIA.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_17a653651](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_17a653651](https://forums.unrealengine.com/u/anonymous_user_17a653651)\
**Post date:** [October 18, 2016, 12:11pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1122 "2016-10-18T12:11:10Z")

</div>

Hey, I still don’t have the DA in my Vault.

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [October 18, 2016, 12:51pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1123 "2016-10-18T12:51:06Z")

</div>

> [@anonymous\_user\_2b7b23d4onseedgfx;607928](#):
>
> Hi,
> 
> If I was too use this for creating a space station would the created layout be able to rotate around a given point i.e. a planet? Or do you know of a way to do this?
> 
> Thanks

@demonseedgfx, @MiDri suggestion is a nice workaround. 's another approach that lets you rotate your dungeon at runtime by attaching all the dungeon objects to a root actor:

1. Generate your dungeon
2. Grab all your generated dungeon actors and attach them to some root actor (which you will rotate around the orbit)
3. Rotate the root actor to rotate your dungeon

https://.youtube.com/watch?v=Ik9-HFy\_CFE

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [October 18, 2016, 1:02pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1124 "2016-10-18T13:02:00Z")

</div>

> [@MiDri;608227](#):
>
> Having a weird issue with the SnapDungeonBuilder
> 
> Modules, Start modules, and End Modules work fine. However; adding branch end modules results in being unable to save the current map (the one with the dungeon in it) with this error:
> 
> Can’t save F:/Projects/Unreal/M8/Content/M8/Levels/Ships/Cortex8.umap: Graph is linked to object(s) in external map.  
> External Object(s):  
> ShipDoor001\_3
> 
> Try to find the chain of references to that object (may take some time)?
> 
> I’ve tried deleting and readding the snapdoor to the specific levels used for the branch end modules, but it does nothing but increase the \_# appended to the error message…
> 
> Also, would it be possible to have the negative volume work for the SnapDungeonBuilder? I’m trying to build starship interiors with this plugin and it works well, other than the fact that some times halls wrap around the bridge of a ship and put a room infront of the window… which is kinda funny… but not practical.

@MiDri This should be fixed in the latest version. There was a build error in the version I submitted to epic on one of the platforms. I’ve resubmitted it yesterday and it should be available soon.

Adding negation volumes should be straight forward. I’ll add it in the next build

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [October 18, 2016, 1:06pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1125 "2016-10-18T13:06:39Z")

</div>

> [@anonymous\_user\_3556c906igirl;608818](#):
>
> This is ! I just started creating a VERY basic producedural builder the other weekend and after seeing this yesterday I immediately bought this! No point in reinventing the wheel when you’ve already made such an plugin! You’re youtube tutorials are great, though the volume is really low in quite a few of them. Just thought I’d mention that to you. But the tutorials themselves are really great for explaining how to do things and showing what’s possible. I can’t wait to learn more about how to use this plugin.

Thank you @sazigirl! I got a good quality microphone a while back and I’ll re-record the videos soon. Feel free to ask if you need any help

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [October 18, 2016, 1:09pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1126 "2016-10-18T13:09:34Z")

</div>

> [@teak421;609112](#):
>
> Hi.
> 
> Not in my library… Could you check please? Thanks.
> 
> teak

> [@DrFrancky;611029](#):
>
> Hey, I still don’t have the DA in my Vault.

I’ve sent a mail to Epic asking for the status. I’ll let you all know when I hear from them

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [October 18, 2016, 1:45pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1127 "2016-10-18T13:45:11Z")

</div>

> [@uced;609314](#):
>
> Hello,
> 
> Do you know if it’s possible to access a marker emitter local variable from c++ code ?  
> EDIT: hmm, this formulation might be misleading, what i mean is “can the emitter BP see a variable from my code ?” (then i could “set” the local BP variable with my code variable in the event graph)
> 
> To take a concrete example, in your adjacent cell emitter, you have defined a “distance” variable to fill empty space more or less.
> 
> I’d like to drive this variable from my code (and other variables i have created in my own marker emitter BPs).
> 
> But the marker emitters are UObjects, so they do not have any access to their ADungeon owner, or UWorld, or the engine, or GameState, or any actor i could use as a proxy.
> 
> And as they are declared as a TArray in the ADungeon, creating a class inheriting from your emitter class would be useless as far as i can say (as it wouldn’t be used by your code).
> 
> So i’m a bit stuck , the emitters BP seem to be inside an isolated bubble which i can’t enter.
> 
> I have pretty much no experience with BP so maybe i’m missing some big thing.
> 
> Any idea ?
> 
> Thanks a lot  
> And again, 1000 bravos for DA, a real piece of brillant work, i really hope one day we’ll see Terrain A. and City A. in UE4, you’ll have one enthusiastic customer for both of them !
> 
> Cheers

, the emitter BP can see your variables from code. You need to add a reference to your C++ actor that drives this variable and read it from there

's an example where from the BP, I’m grabbing the distance (random value between 1-6) from C++

C++ code that drives the distance variable:  
**AMyDungeonController.h**

```auto

#pragma once
#include "AMyDungeonController.generated.h"

UCLASS(Blueprintable)
class AMyDungeonController : public AActor
{
	GENERATED_BODY()

public:

	UFUNCTION(BlueprintCallable, BlueprintPure, Category = MyDungeonController)
	int32 GetMountainDistance();

};

```

**AMyDungeonController.cpp**

```auto

#include "DA413X.h"	// pch
#include "AMyDungeonController.h"

int32 AMyDungeonController::GetMountainDistance()
{
	return FMath::RandRange(1, 6);
}

```

Add a variable in the emitter BP that takes a references to your controller code and make it public

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/3/ad39ac018bbc095d499381329974c5fe4f1f2e63.png) ](https://i.imgur.com/EE4mfSD.png)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/9/0/6901abc7b723ddb22f948d0e24c2df0da5d267f4.png) ](https://i.imgur.com/UMj9rcf.png)

Grab the distance from your C++ code

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/d/1/3d1865d8da7edd7b7130e06bdb04934633bb1fde.png) ](https://i.imgur.com/JQFrEK6.png)

Finally, set the reference of your C++ code in the marker emitter when you register it in the Dungeon actor. (The assumption is that you have it somewhere placed in the level, which you probably do)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/7/0/97029669986602c6e08d31218ab61cecc6a16242.png) ](https://i.imgur.com/uHn65gm.png)

Clicking build now randomly generates rocks that are 1-6 layers deep

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [October 18, 2016, 2:04pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1128 "2016-10-18T14:04:21Z")

</div>

> [@anonymous\_user\_3556c906igirl;609354](#):
>
> Hey I’m loving this plugin! I do have a couple questions.
> 
> In the tutorials you show that you can easily unconnect a marker and its mesh. I can’t for the life of me figure out how to do that. I didn’t see this explained in any of the documentation. Is there a keyboard shortcut or something that quickly allows you to disconnect the marker and mesh without deleting the mesh?

@sazigirl, You can disconnect a link using Alt+Left click on the node’s pin. I’ll add this in the documentation

> [@](#):
>
> Is there a way to detect if the marker is a corner of room or hall? That seems like something lots of folks might want to know when customizing their themes.

You can do that with spatial constraints. The tutorials for it are missing. I’ll add it soon. 's a quick overview:

watch?v=eL4C42A7rx4

> [@](#):
>
> And again thank you for this great tool!

Thank you for using it 🙂

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [October 18, 2016, 2:05pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1129 "2016-10-18T14:05:22Z")

</div>

> [@uced;609621](#):
>
> Hey,
> 
> I purchased the ultimate rock pack yesterday and get a crash when trying to use it on an instanced dungeon.
> 
> I could use their meshes to paint foliage on a landscape, so those meshes can be instanced in UE4.
> 
> Strangely enough, the instanciation works very well in DA preview windows, but crashes in UE4 preview windows (and in game).
> 
> a short video to show you how it goes.
> 
> watch?v=x6z2ipNnFDk
> 
> Thanks !

, Thanks for the video. I’ll have a look

---

<div class="post-metadata">

**Author:** ![teak421](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/teak421/32/902996_2.png) [@teak421](https://forums.unrealengine.com/u/teak421)\
**Post date:** [October 18, 2016, 2:27pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1130 "2016-10-18T14:27:37Z")

</div>

> [@;611048](#):
>
> I’ve sent a mail to Epic asking for the status. I’ll let you all know when I hear from them

,

All good, in my library now… Thanks.

teak

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [October 18, 2016, 2:28pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1131 "2016-10-18T14:28:24Z")

</div>

> [@Laurentius;610179](#):
>
> Hi,  
> I just bought your plugin and I have some questions. My game should use DA to generate dungeons at runtime using the grid builder approach where the dungeon level has one entrance and one or no exit.
> 
> 1. How do I let DA place an entrance (e.g. a special wall) and an exit that are far away from each other?
> 2. How do I player the PlayerStart location and orientation at the entrance (or exit if going upwards from a lower level) of the dungeon?
> 3. Can I place special prefabricated rooms in the runtime dungeon? (like exit, entrance, jail etc.)
> 
> Maybe I miss something obvious as I’m new to Dungeon Architect?
> 
> Thanks for your great plugin,  
> Lars

```
@Laurentius, @DrinkThisPotion

```

1. The latest version 2.2.0 (soon to be updated in the marketplace) has an API and samples to find the furthest rooms in the dungeon

2. You can use the Query API (in the examples) to orient the playerstart away from the entrance

3. @DrinkThisPotion’s suggestion would work but it requires some work for properly wrapping theme override volumes around it. You can do that with a dungeon event listener (will work for dynamic runtime dungeons too) where you listen for dungeon layout build event (where the layout is built but the theme is not applied) and place the volume around it. I have a sample for this in Unity. I’ll add a demo soon

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [October 18, 2016, 2:41pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1132 "2016-10-18T14:41:47Z")

</div>

> [@DrinkThisPotion;610684](#):
>
> Hey fellow DA enthusiasts - does anyone want to share notes on what we’ve learned? I’ve gone through all the videos and done quite a bit of experimentation on my own. I have some learned some pretty neat tricks, but I’m also up against what seem to be some limitations. I plan to make some tutorial videos on some of the finer points I’ve learned. I’ll share those when I finish them.
> 
> Has anyone gone advanced with building your own marker emitters? I built one to emit in the center of rooms which is working very well. However I’m very interested in going deeper as it seems the possibilities are powerful.
> 
> Specifically, when getting the bounds of rooms and corridors, does anyone understand that model very well? I’d love to chat.
> 
> If anyone’s interested, 's a blueprint marker emitter I made for the center of the room. It is based on one of the DA author’s demo emitters with few a very minor tweaks.
> 
> ![roomcenteremitter.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/a/32ab989c149f8b7301bcaf326d7a6042042ff85e.png)

@DrinkThisPotion Great work! There’s a lot you can do with marker emitters. You can also use it to decorate the empty space around your dungeons (unity example but also applies to UE4)

Before

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/3/5/73575531739eb6f0beb9a6a7fb45437f750bccdb.jpeg)  
After

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/d/49d5592445406cc2c815a5249ecf36c29267444d.jpeg)

https://.youtube.com/watch?v=fbIwQFKBUWE

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [October 18, 2016, 2:53pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1133 "2016-10-18T14:53:36Z")

</div>

> [@RedSaturnSix;610945](#):
>
> Does anyone have a video or written tutorial for SnapDungeonBuilder functionality? I checked on’s youtube page where he has a demo of it, but no explanation or set up. MTIA.

@RedSaturnSix I’ll add detailed video tutorials soon. In the mean time, the [snap builder](http://coderespawn.github.io/dungeon-architect-user-guide-ue4/stage/html/user_guide_2.0.html#snap-builder) section in the user guide has info to get you started

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [October 18, 2016, 2:59pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1134 "2016-10-18T14:59:58Z")

</div>

> [@MiDri;609868](#):
>
> Transformation section of SnapDoor:Closed Mesh is not working. Location, Rotation, and Scaling are not affecting the generated meshes… I understand why it would not make sense for it to work with the Open Mesh (as it’s placed in between 2 snap areas and which one it used as it’s relative location would be arbitrary.) I do think it should work for closed mesh though, as there’s no ambiguity when it comes to where it should be oriented and what it’s relative space should be associated with.
> 
> It would also be nice to be able to associate a closed mesh per door and not just per SnapDoorAsset as the door between the two locations can share a mesh/blueprint, but the closed mesh might need to be different for different rooms.
> 
> Example: I have a space station I generate where the doors are set back 20cm from the wall (helps prevent hallway/adjacent room meshes from bleeding through to current room) it looks fine for doors used in the open mesh, but the closed mesh are put 20cm back and look sunken in. Also most rooms do share the same closed mesh, but a few rooms have different themes and should have different closed mesh when no door is placed.

@MiDri please test with the new version (2.2.0) which will be updated in the marketplace in a day or two. I sent the request yesterday. As for removing the one of the two closed mesh between modules, I got this request from others as well. I’ll add a flag to remove or retain it

---

<div class="post-metadata">

**Author:** ![DrinkThisPotion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DrinkThisPotion](https://forums.unrealengine.com/u/DrinkThisPotion)\
**Post date:** [October 18, 2016, 3:29pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1135 "2016-10-18T15:29:23Z")

</div>

> [@;611093](#):
>
> 1. @DrinkThisPotion’s suggestion would work but it requires some work for properly wrapping theme override volumes around it. You can do that with a dungeon event listener (will work for dynamic runtime dungeons too) where you listen for dungeon layout build event (where the layout is built but the theme is not applied) and place the volume around it. I have a sample for this in Unity. I’ll add a demo soon

Is there documentation anywhere on the dungeon model and dungeon layout? A diagram showing how the XY grid works and how the rectangular bounds are formed and stored would be very helpful.

---

<div class="post-metadata">

**Author:** ![Ali\_Akbar](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ali_akbar/32/1008648_2.png) [@Ali\_Akbar](https://forums.unrealengine.com/u/Ali_Akbar)\
**Post date:** [October 18, 2016, 3:37pm UTC](https://forums.unrealengine.com/t/dungeon-architect/28094/1136 "2016-10-18T15:37:11Z")

</div>

> [@DrinkThisPotion;611123](#):
>
> Is there documentation anywhere on the dungeon model and dungeon layout? A diagram showing how the XY grid works and how the rectangular bounds are formed and stored would be very helpful.

The new version (2.2.0) has a new query system that will hide the low level data structures in the model and give you a easier system to work with. are a list of functions in the query object of the grid builder which you can call from a blueprint

[FONT=Courier New]   
GetCells  
GetCellsOfType  
GetCellDimension(int32 CellId, FVector& OutCenter, FVector& OutSize);  
GetPathBetweenCells(int32 CellA, int32 CellB, TArray\<int32\>& OutResult, bool& bOutSuccess);  
GetFurthestRooms(int32 &OutRoomA, int32 &OutRoomB);  
GetCellAtLocation(const FVector& WorldLocation, int32& OutCellId, bool& bOutValid);  
GetCellType(int32 CellId);  
GetRandomCell();  
GetRandomCellOfType(FCellType CellType);  
GetRandomCellFromStream(FRandomStream& RandomStream);  
GetRandomCellOfTypeFromStream(FCellType CellType, FRandomStream& RandomStream);  
ContainsStairBetween(int32 CellA, int32 CellB);  
ContainsDoorBetween(int32 CellA, int32 CellB);  
GetStairBetween(int32 CellA, int32 CellB);  
GetDoorBetween(int32 CellA, int32 CellB);  
GetOpeningPointBetweenAdjacentCells(int32 CellA, int32 CellB);

I’ll add more on request

[Previous page](https://forums.unrealengine.com/t/dungeon-architect/28094.md?page=55)

[Next page](https://forums.unrealengine.com/t/dungeon-architect/28094.md?page=57)
