-
-
Notifications
You must be signed in to change notification settings - Fork 24
UDungeonInteriorDatabase en
Shun Moriya edited this page Jan 11, 2023
·
1 revision
UDungeonInteriorDatabase is the database used to spawn furniture, decoration, and vegetation by tag.
Use it when you want rooms to feel different from each other, or when only tagged rooms should receive extra furniture or plants.
-
Interior Parts
Interior parts spawned as actors, such as furniture and decoration -
VegetationParts
Vegetation-style decoration such as grass, vines, and foliage
Interior selection happens when tags returned from the room side match tags configured in the database.
The two main input sources are:
ADungeonRoomSensorBase::GetInquireInteriorTagsUDungeonInteriorLocationComponent::InquireInteriorTags
For example, if the room side returns library and an interior part in the database also has library, that furniture becomes a candidate.
-
Interior Parts- Actor class for furniture or decoration
- System tags
- Additional tags
- Spawn frequency
- Overlap check
- Spawn method
-
VegetationParts- Mesh for vegetation
- Tags
- Density
- Slope conditions
- Culling distance
Interior Parts precompute actor bounding-box information when Build is run.
If you change furniture size or actor classes and skip Build, placement checks may still use outdated information.
- Register furniture or decoration Blueprint / C++ actors in
Interior Parts. - Register vegetation in
VegetationPartsif needed. - Return the tags you want to use from the room side or from
DungeonInteriorLocationComponent. - Run
Build. - Assign the asset to
DungeonInteriorDatabaseinUDungeonGenerateParameter.
- Start with broad tags such as
start,goal, andhall. They are easier to manage. - Add narrower tags such as
kitchenorlibrarylater as the layout grows. - Edit
Interior Partswhen you only want to swap furniture, andVegetationPartswhen you only want to change plants.
-
ADungeonRoomSensorBase.en.md
Review how room events can provide interior tags. -
UDungeonGenerateParameter.en.md
Review where this database is assigned in the main settings asset.
- Quick Start
- Prepare Mesh Parts
- StaticMesh Fit Tool
- ADungeonGenerateActor
- ADungeonSubLevelScriptActor
- ADungeonRoomSensorBase
- UDungeonGenerateParameter
- UDungeonMeshSetDatabase
- UDungeonInteriorDatabase
- UDungeonSubLevelDatabase
- UDungeonRoomSensorDatabase
- Generate Minimap Textures
- Apply MissionGraph
- Custom Selector Guide
- Lobby Connection Guide