I’m trying to load via blueprint multiple level instances I added to my scene.
I tried with for each loops or event dispatchers but no matter what I tried, only the first level is loaded and subsequent levels are not.
For instance I tried only loading the next level after the previous one has finished loading, like this :
The print string linked to the branch never triggers.
It looks like the second level is requested to load while the first one has not finished loading but I’m not too sure.
Easiest way is to make your own special level streaming Foreach loop.
I made a copy of the Foreach macro, and converted it to level streaming ( note: don’t change the default macro, copy the code into your own macro library and use that )
I think the second assign is resetting the loop variable. The standard macro uses to variables, because it has to pass one out during the loop, but I noticed on closer inspection we only need one. Here’s the update