Getting data from struct crahses IOS game
I have made a struct in c++, this struct contains information about worlds in my game, because the player is able to switch worlds instantly and I am using 1 persistent level with sub levels. Then in my game instance class, I have the following TArray:
The contents of this TArray are being coppied to an UnlockManager class which checks if the worlds are unlocked etc.
Now, one of the datatypes this struct is holding is the following:
Now, when I try to get the current game world (FWorldData struct) in my game mode, read it out in Blueprint and break the struct to get the DefaultCharacterAnimClass pointer variable.. My game crashes.
All the other contents of the struct read out fine, but getting that one crashes my game, and also, only on IOS. Not on windows, not on Mac, not while PIE.
Somehow when my game crashes, it won't generate crash log files anymore on the IOS device, so I am kind of in the dark here..
I need that DefaultCharacterAnimClass because the mesh of the player is different in each world, and so I need to change the AnimationInstanceClass of that mesh to the correct animation blueprint so that the character is animated.
I hope this all makes sense to someone and that maybe someone know's what's going wrong here.
asked Aug 08 '18 at 12:29 PM in C++ Programming
After some trial and error I figured out that when I build the game in Xcode first, and after that, launch it from the editor, everything works as intended.
answered Aug 08 '18 at 01:59 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here