. Interiors Editor Setup

Updated a week ago

Creating Your Dungeon Definition

  1. In your Unity Project window, create a new folder for your interior.

    • Example: PathToContentContainer/Content/Interiors/MyInterior.
  2. Inside that folder, create another folder named Registry.

    • Example: PathToContentContainer/Content/Interiors/MyInterior/Registry.
  3. Inside the Registry folder, right-click and select:
    Create → DawnLib → Definitions → Dusk Dungeon Definition.

  4. 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:

  1. Put your DungeonFlow asset into its own AssetBundle.

    • Example: facilityassets.
  2. Put your DuskDungeonDefinition (and any related assets) into a separate AssetBundle.

    • Example: facilitydungeondefinition.
  3. 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!