1. One things solved:
I had a "memory issues" problem and the app crashing at the start of one mini game where I am spawning 100 prefabs, all with several FSMs.
It seems that spawning these objects from prefabs and having them change their color by swapping their mesh object was the reason for abnormally high memory consumption.
I modified it the following way and now the memory consumption is healthy and there are no crashes: now I load in 10 different templates form a scene, then create 9 copies of each to get the 100 pieces and also changed their color change FSM from swapping meshes to material changes.
Not sure at all but I guess the extreme memory consumption might have been because each of the 100 prefabs loaded the 100 different meshes it might have to be able to change to during the game???
2. This problem I still need to figure out:
On a bit older 4th gen iPad the app works, but regularly hangs for several seconds. (Maybe when it should be playing a sound or running more FSMs)
When it does not hang it is not laggy so it is not a performance issue.
Any idea what could be causing this hanging?
Why only on iPad? (happens on 2 out of 2 iPads so far tested)
I don't experience this on iPhone 6, or any Android device, even laggy old ones.
The app is live if anybody has the time to try it out with an iPad to see exactly what I am talking about:
https://itunes.apple.com/app/id1184982624https://play.google.com/store/apps/details?id=com.Emese.English3. Please shed some light on this level loading mess I am having:
About the clean level load thing (LoadLevelClean.unitypackage).
There is also a "Load Level Clean" action in the Ecosystem, which seems to do the same, just a better implementation as it does not require Send Message-ing.
1. Both load an empty level before the intended one. Why is this required?
2. They don't load the intended level additively. (Everything else that is not marked to Dont Destroy On Load is removed.)
Can this work with additive loading?
Or should I just mark all the game objects in my main scene that I need to keep when loading levels with the "Dont Destroy On Load" action?
Thanks in advance,
szomaza