. Interiors Editor Setup
Updated a week agoCreating Your Dungeon Definition
-
In your Unity Project window, create a new folder for your interior.
- Example:
PathToContentContainer/Content/Interiors/MyInterior.
- Example:
-
Inside that folder, create another folder named Registry.
- Example:
PathToContentContainer/Content/Interiors/MyInterior/Registry.
- Example:
-
Inside the Registry folder, right-click and select:
Create → DawnLib → Definitions → Dusk Dungeon Definition. -
Make sure you have the following ready before proceeding:
- A DungeonFlow ScriptableObject with all necessary tiles etc setup that a normal interior would need.
Configuring the DuskDungeonDefinition
Once you’ve created the DuskDungeonDefinition, you’ll see several fields that need to be filled in.
Required Fields
| Field | Description |
|---|---|
| Config Entries | Place you can create various Config Entries in. |
| Namespace | A unique identifier prefix for your mod or content. Example: code_rebirth. |
| Key | Becomes autofilled in by reading the asset name in your DungeonFlow. |
| DungeonFlowReference | Assign your existing DungeonFlow ScriptableObject here (this does not make it get referenced by your assetbundle because its a reference. |
| Stinger Audio (optional) | The audio that plays when you discover the interior for the first time. |
| Moon SpawnWeights Config | Define the SpawnWeight of the interior per moon/moon tags. |
| Weather SpawnWeights Config | Define the SpawnWeight of the interior per weather/weather tags. |
| Extra Scrap Generation | Allows you to define extra scrap to spawn for your interior, similar to mineshaft. |
| Generate SpawnWeights Config | Allows users to define their own SpawnWeights of interior on moons. |
| Generate Extra Scrap Config | Allows users to edit how many extra scrap can spawn on this interir. |
| Generate Clamp Config | Creates a config to allow users to edit the clamping of the size of the generated interior. |
| Dungeon Range Clamp | The clamp values for what the interior min and max sizes can be. |
| Map Tile Size | Adjust this value in relation to how you percieve the size of the interior tiles are compared to something like facility tiles, higher number if your interior tiles are bigger on average. |
| Stinger Plays More Than Once | Whether the stinger of the interior can play more than once. |
| Stinger Play Chance | The chance of the stinger playing each time you enter the interior for the first time on a moon. |
Organizing and Bundling
After your dungeonflow and definition are configured:
-
Put your DungeonFlow asset into its own AssetBundle.
- Example:
facilityassets.
- Example:
-
Put your DuskDungeonDefinition (and any related assets) into a separate AssetBundle.
- Example:
facilitydungeondefinition.
- Example:
-
Add ONLY the dungeon definition's AssetBundle to the list of AssetBundles in your ContentContainer
(created during the Unity Setup stage).
Once that’s done, your content is registered!
Pages
- A. Unity Setup
- B.1 Registering Content via Code
- B.2 Registering via Unity Editor
- C.3 Weathers
- C.4 Enemies
- C.5 Inside/Outside Hazards
- C.6 Ship Upgrades/Decors
- C.7 Items
- C.8 Additional TileSets
- C.9 Terminal Commands
- C.A.1 Footsteps
- C. Interiors
- C. Moons
- D.1 Achievements
- D.2 Vehicles
- D.3 Entity Replacements
- E.1 DawnLib SourceGenerator
- F.1 Utility Scripts
- F.2 Unity Editor Tricks
- . Interiors Code Setup
- . Interiors Editor Setup
- . Moons Code Setup
- . Moons Editor Setup