Hi,
I found some issues with spawning of actors when using streaming levels.
In my setup i have the Dungeon actor in a level that is loaded using the LoadStreamLevel function. After loading i setup the Dungeon’s parameters (theme, config, etc) and call BuildDungeon. All actors that spawn however are created in the persistent level instead of the level the Dungeon is in. When unloading the level all of the actors that were created during the build process are not removed.
I have a temporary fix to this by modifying your spawning code to override the level. Before each call to SpawnActor i do this:
FActorSpawnParameters SpawnParams;
SpawnParams.OverrideLevel = Dungeon ? Dungeon->GetLevel() : NULL;
There are several calls to SpawnActor across 3 files:
InstancedDungeonSceneProvider.cpp
SceneProviderCommand.cpp
SceneProviderCommand.h
It would be great if you could verify and apply these changes to your code.
Thanks,
hamouras