private void AdjustSettingsAndGenerate(RuntimeDungeon runtimeDungeon) { var dungeonFlowAsset = runtimeDungeon.Generator.DungeonFlow; // Make a copy of the existing settings var newDungeonFlow = Instantiate(dungeonFlowAsset); // Adjust the number of instances of the first global prop in the list newDungeonFlow.GlobalProps[0].Count = new IntRange(1, 3); // Assign our new settings to the dungeon generator runtimeDungeon.Generator.DungeonFlow = newDungeonFlow; runtimeDungeon.Generate(); }