# Generating a dungeon in UE5

**URL:** <https://forums.unrealengine.com/t/generating-a-dungeon-in-ue5/1619142>\
**Category:** Community & Industry Discussion\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [January 16, 2024, 2:51pm UTC](https://forums.unrealengine.com/t/generating-a-dungeon-in-ue5/1619142 "2024-01-16T14:51:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![WandererFIN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WandererFIN](https://forums.unrealengine.com/u/WandererFIN)\
**Post date:** [January 16, 2024, 2:51pm UTC](https://forums.unrealengine.com/t/generating-a-dungeon-in-ue5/1619142/1 "2024-01-16T14:51:16Z")

</div>

Hey,  
I was thinking about how to generate a dungeon and stumbled upon this guide:

> [@Generating simple procedural dungeon](https://forums.unrealengine.com/t/generating-simple-procedural-dungeon/97541):
>
> Hello everyone, I was just checking how to create some procedural dungeon map and because I couldn’t find a proper explanation for doing it on UE4, I made one myself. Here is what is looks like: It doesn’t spawn content or whatever, it’s quite far from every crazy content you can find on the market, but the point is that I also write some document explaining how to create the same thing in BP that I share with you. As it’s my first tutorial, I’m not convinced it is properly descr…

Since it’s now closed for commenting I wanted to ask some help here because I have some gaps in my knowledge when it comes this kind of stuff and the doc linked has some gaps too.

 ![Screenshot_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/4/e14b47d40855e7b5a0c5b58cb65cbd3f8465ab8c.jpeg)  
 ![Screenshot_2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/3/b/43b1cb20abb671efd65a47ac4ac44838438faa61.jpeg)  
 ![Screenshot_3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/d/2/9d23e6b2484f3833d3ebb54e8e64b0f4c4b73510.jpeg)  
 ![Screenshot_4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/b/7/6b74586618bf924a8c268ef34755426210ccf22e.jpeg)  
From what I could gather this is what I ended up with. I especially have many questions towards the end, especially with the “create a corridor” function.  
Any help and tips would be great, bonus if you have improvement ideas!

---

<div class="post-metadata">

**Author:** ![N8JUMPER](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@N8JUMPER](https://forums.unrealengine.com/u/N8JUMPER)\
**Post date:** [January 22, 2024, 7:07pm UTC](https://forums.unrealengine.com/t/generating-a-dungeon-in-ue5/1619142/2 "2024-01-22T19:07:00Z")

</div>

I am working through the same tutorial and have noticed the same gaps. My comprehension is much lesser than yours, so I was wondering if your finished product was functional, and if so, if you would be willing to share the overlapping method that was left out of the original tutorial? Thank you. Also, where is the generate spanning tree function called in this iteration, as following the tutorial, it is very not clear. Appreciate you greatly.

---

<div class="post-metadata">

**Author:** ![WandererFIN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WandererFIN](https://forums.unrealengine.com/u/WandererFIN)\
**Post date:** [January 24, 2024, 3:48pm UTC](https://forums.unrealengine.com/t/generating-a-dungeon-in-ue5/1619142/3 "2024-01-24T15:48:44Z")

</div>

Hey, on the same boat as you, didn’t manage to figure it out yet. Especially the “create a corridor” function with the 4 nodes going into it elude me, I have no idea where they should connect inside the function…

 ![Screenshot_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/0/3f07abb338ca51e24eb470fd8122f180cc1be988.jpeg)  
I assume you mean this overlap? I have NO idea if this is correct lmao, tell me if you can figure it out! Or hopefully someone smarter saves us…

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [January 24, 2024, 3:57pm UTC](https://forums.unrealengine.com/t/generating-a-dungeon-in-ue5/1619142/4 "2024-01-24T15:57:00Z")

</div>

If you’d rather just “have a procedural dungeon you can configure” rather than “learn the algorithm and how to implement it in Blueprint,” then I’ve had success with the Dungeon Architect plugin. It has a blueprint-based customization level that lets you choose different algorithms and build your various asset sets, but it also comes with C++ source code if you want to customize it at the base level.

So, if you just want a procedural dungeon system, because your game needs it, that’s an option to look into!

---

<div class="post-metadata">

**Author:** ![N8JUMPER](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@N8JUMPER](https://forums.unrealengine.com/u/N8JUMPER)\
**Post date:** [January 24, 2024, 6:26pm UTC](https://forums.unrealengine.com/t/generating-a-dungeon-in-ue5/1619142/5 "2024-01-24T18:26:32Z")

</div>

As wonderful a suggestion as that sounds, I notice that plugin also boasts a 300 dollar price tag, which is a tad out of the price range for a school project. Thank you for the suggestion, but it is not so much an unwillingness to learn the algorithm and implementation as a simple lack of fundamental understanding of where to start in learning where and how to implement it. There are certain elements within the tutorial that feel very clear to understand and are well explained, but others feel infinitely less clear, making it much more challenging to comprehend. If there are any resources that come to mind that may assist in the “learn the algorithm and how to implement in blueprint” part, that would be the most ideal outcome. Thank you sincerely for the contribution anyway.

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [January 24, 2024, 8:10pm UTC](https://forums.unrealengine.com/t/generating-a-dungeon-in-ue5/1619142/6 "2024-01-24T20:10:25Z")

</div>

Oh, sure! I just reported my experience on the topic.  
FWIW, I tried to check the price, but because I already have it, the marketplace doesn’t show me the price anymore 🙂

---

<div class="post-metadata">

**Author:** ![WandererFIN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WandererFIN](https://forums.unrealengine.com/u/WandererFIN)\
**Post date:** [January 29, 2024, 5:06pm UTC](https://forums.unrealengine.com/t/generating-a-dungeon-in-ue5/1619142/7 "2024-01-29T17:06:10Z")

</div>

I’m kinda on the same boat here, it’s just something I can’t really pay for at this point being unemployed and all, so I’ve just learning stuff, especially because procedural stuff is so interesting! I kinda figured out a way to go around this if I’m going to do the project I was planning though.
