This is my blueprint for the DungeonEventListener:
This adds a special theme for the start room in my runtime dungeon.
Quite there … but there are 2 problems:
-
changes to the DungeonThemeOverrideVolume (size and scale) are not used for the current runtime dungeon - the volume is changed but the changes apply only when I play the level a second time (I tested this with a static seed number …)
So I think that OnDungeonLayoutBuilt is not the right place/time for changing the asset or I need to update the changed DungeonThemeOverrideVolume somehow. (major problem!) -
how is the value for the volume scale (see image) calculated? I found it by testing different values but I have no idea where to get this value of ~175 at runtime. (minor problem)
Any ideas?
EDIT: Problem 1 occurs only if the dungeon is build at runtime - if I manually change the seed and hit “Build” on the dungeon asset in the editor the blueprint works correctly and the theme for the start room is changed.