C++ Derived Blueprint: TArray<> not working in standalone window
I have a C++ gamemode in which i declare the following TArray<>:
I also have a Blueprint derived from this class. In this Blueprint i have a function that spawns ASpriteActors and adds them to the array. But for some reason this only works in Editor and not in Separate Windows (e.g. mobile preview, packaged game, etc.). I don't get any error or anything, the function just does not spawn the actors.
The funny thing is that it DOES work when i create a separate array in the blueprint and use it instead of the c++ array. I may be missing some required UPROPERTY or something, but i have not found anything as to why this problem occurs.
I hope some of you can give me more insight, thanks in advance :)
Wiring Test instead of Tiles works in-editor as well as in other windows.
Nevermind, my error was in another function. Apparently GetViewPort size returned 0 sincethe HUD was not rendered in time.
answered Feb 08 '17 at 09:26 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here