I'm trying to use Async Load Asset inside a For Each loop. It doesn't work. How to load an array of objects that are soft referenced?

You need to make sure you exit the loop at some point. This is why in the example I provided, I fill an array before starting the loop, then in each execution I grab the first element and remove it from the array.

If you wanna switch to c++, look into FStreamableManagerRequestAsyncLoad, which is much more convenient as it can effectively load batches. You simply give it an array of SoftObjectPtr/SoftObjectPath.

1 Like