i have this issue that drive me nuts… :neutral:
is it possible to have something works perfectly on editor and not so on android?
i have an object that contains child objects with simple effects (to represent skill class)
object have Class and within it there is a public integer named “level” which starts from 1 as default value…
also i manually referenced child objects using public GameObject… so class can control (disable/enable) these objects depending on level in the class… Very Basic stuff …
generally in my game i reference ALL skill objects in a public serialized class that holds these object prefabs with other information as template… then i instantiate them whenever i need them in game world… this works fine in both editor and android in general.
but in android i noticed this skill class didn’t work as expected…
i tried using adb to see errors that android generates… and i found that something altering to default values on android…
the integer level default value gets a huge value of something like>> 112201110 …
i even tried making the level as private (not public)… and the application started hanging on android…
i found also that two of the referenced child objects in the class gives me NullException as if it lost this reference upon instantiate or something!? am not sure why i get these results… is this a bug or something ? am using unity 4.2.1
the only new thing i did in this class different than others…is that start using a virtual function, which is overridden by this skill class…but as i said earlier, things works perfectly in editor, no errors or warnings…
no idea what’s wrong…