Get All Actors Of Class with Level Streaming broken after update to 4.9
In 4.8.3 it worked perfectly. Level streamed, actors placed, event beginplay starts. Now beginplay starts before an actors from the streamed level presents at the scene and Get All Actors Of Class returns an empty array.
It works fine with the single level or with Always Loaded method but once same levels switched to the blueprint streaming methot it stops working. Though little delay helps but thats just silly.
Steps to reproduce:
1 - create blank project with a persistent and streamed levels (blueprint method).
2 - create new actor bp with code (also tried placing it at the beginplay of the streamed level bp, same result) and place it at the streamed level:
2 - Stream level at the persistent level bp:
3 - Result:
asked Sep 01 '15 at 09:14 AM in Bug Reports
Thanks for the report! I was able to reproduce this in 4.9.0 as well as our internal builds, and I've entered a bug report for the issue (UE-20736). I'll post here when I see any update.
I spoke with the developers about it, and the problem is not that Event Begin Play is being fired before the streaming level is loaded. Instead, the problem is likely a timing issue with Get All Actors of Class. I'll let you know if I find out more. For now, using the delay is your best bet.
answered Sep 03 '15 at 06:12 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here