Load/Unload Stream Level inconsistent

Hi there,

I have three test levels setup:

I am enabling and disabling those with the following logic:

It worked for some time. But at some point it stopped working. I added a print string at the end:

By doing that it magically worked again. When I deleted the print string afterwards it continued working. My assumption is that the print string gave the level enough time to load. And after it was cached, I could delete the print string again without breaking it. But this is of course no solution. How would I implement this correctly? For now I will try to avoid loops I guess because I read somewhere about Latent Actions being the culprit. However, this cant be the permanent solution. It would be nice to figure this out.

1 Like

I think if you restart the editor, it won’t work even if you use a print string?

I’m thinking this only works with a foreach because the levels are cached.

Could that be?