I need help to generate randomly room inside a level in backroom style

Hello Everyone, i’m putting this because i need help with my project.

I’m a beginner in unreal ungine but i have learn some tips but i’m currently working on a backroom games project and i need help for something really specefic

I need something (program,code etc…) to help me generate room as i travel among a large panel of room.

for exemple i have actually 2 room (but i planned to do 200) and i want when you travel inside the level for random room (from the current 2 but later for the 200) to spawn randomly (not only one type of room or the same room or the same set of room) i want them to spawn really randomly and be connected to one another since its a backroom game.

Thanks for your time and i hope i was clear with what i need help, if you need more info or detail don’t be shy and ask.

Hello @RagePoTesNul666 ,
If I understand correctly what you’re trying to achieve, working with a procedural rooms system could be useful for you.

This type of system consists of generating rooms dynamically as the player moves forward, using modular pieces that connect to each other. Instead of designing a full level manually, you define a set of rooms with connection points, and the system takes care of selecting and assembling them in a controlled way. This allows you to create an experience that feels varied and less predictable, while still maintaining coherence in the layout.

I’m leaving you a couple of videos/tutorials that explain how to implement this approach and that may serve as a base for what you’re trying to achieve.
How To Create PROCEDURAL DUNGEON GENERATOR in C++
How To Create PROCEDURAL DUNGEON
These last two are simpler approaches.
Procedural Dungeons 1
Procedural Dungeons 2

If you wanted something simpler, you could also go for an approach like a random teleport between rooms. In this case, the rooms are not generated automatically: you would need to create them manually beforehand, and the system would simply move the player between them randomly. It’s easier to implement, but it loses the sense of continuity and exploration you’re looking for, since the space is not actually connected.
How to create a Random Teleport

The same applies to level streaming. Level streaming is responsible for loading and unloading parts of the map (levels or sublevels) based on certain conditions. However, all that content is still manually created beforehand; the engine only decides when to activate or deactivate it.
Level Streaming

In other words, it does not generate new rooms or dynamic layouts, but rather manages how existing content is presented. It can be useful as a complementary tool, but on its own it does not solve procedural generation or the real randomness you’re aiming for.

Hope it helps!

1 Like

hello @BRGEzedeRocco , well, actually, yes but no, i do not want a limited amont of room, i want room to be generated from a pool of like 200 or 300 room avalaibe but not them spawning all at once since it will make unreal engine crash, i want them to spawwn randomly, but i want them to be the one i have already created

and i don’t want a limit amount of room, i want them to spawn randomly, amoung a set of premade room and i want them to spawn as the player travel amoung the room, i know it must be difficult but once i got that i will be so happy