ADungeonGenerateActor en - shun126/DungeonGenerator GitHub Wiki
ADungeonGenerateActor Guide
ADungeonGenerateActor is the runtime actor you place in a level to generate a dungeon.
If you only want a quick editor preview, Window > DungeonGenerator is faster. Use this actor when you want generation during gameplay or as a fixed part of a level.
Role
- Generate a dungeon from
DungeonGenerateParameter - Destroy a previously generated dungeon
- Coordinate optional features such as minimaps and sublevels
Minimum setup
- Place
ADungeonGenerateActorin the level. - Assign a
Generate parameterasset toDungeonGenerateParameter. - Set
AutoGenerateAtStartif needed. - Call
GenerateDungeonwhen play starts or from Blueprint.
Main properties
DungeonGenerateParameter
Required. Most rules for generation, visuals, sublevels, and sensors come from this asset.AutoGenerateAtStart
Whether to generate automatically when the level begins. Keeping thistrueis often the easiest first check.Dungeon Floor Slope Mesh Generation Method
Generation method for floors, slopes, and catwalks. Instanced methods are better for large counts.DungeonWallRoofPillarMeshGenerationMethod
Generation method for walls, roofs, and pillars.Hierarchical Instanced Static Meshis effective when many wall pieces are used.StartRoomSubLevelScriptActor
Used when a preloaded lobby sublevel should be treated as the start room.
How to trigger generation
GenerateDungeon
Generates using the already assignedDungeonGenerateParameter.GenerateDungeonWithParameter
Generates using a differentDungeonGenerateParameterpassed at call time.DestroyDungeon
Removes the generated dungeon.
When you want to connect a lobby
If you want to use a preloaded lobby as the start room, use StartRoomSubLevelScriptActor.
In that case, the following restrictions apply.
- Set
MovePlayerStartToStartingPoint = falseinUDungeonGenerateParameter - Set
StartLocationPolicy = NoAdjustmentinUDungeonGenerateParameter UseMultiStartcannot be combined with it- The referenced sublevel must already be loaded and must contain
ADungeonSubLevelScriptActor
If you want a fixed start room without preloading a lobby, use UDungeonSubLevelDatabase.en.md instead.
See LobbyConnection.en.md for the full comparison.
Operating tips
- Run
VerifyonDungeonGenerateParameterfirst, then assign it to this actor. That reduces rework. - When you only want to inspect the look, the plugin window preview is faster.
- Add features such as minimaps and sublevels only after the base generation is stable. Debugging is easier that way.
Read Next
- UDungeonGenerateParameter.en.md
Review the full settings asset used by this actor. - LobbyConnection.en.md
Dedicated guide for connecting a preloaded lobby or start-room sublevel.