- Home /
Serialized Fields go bye bye on Android
Hi,
Unity 5.0.0b9
Now then,I have a script called GUIStuff. I drag my cube that's in the scene into the public Transform field, and then I hit play. On PC it plays just fine, but when I build to my Android, it decides to lose the serialized field.
If I search for the object in Start() instead it works, but who wants to search for all of the Objects through code, amirite?
Anyone experiencing anything similar with the latest version of Unity?
well, I do check in Awake/Start to make sure the object is there...simply because scene files are not merged properly with Git and other devs are not always programmers so they may do wrong. If you develop on your own, then yes, you know what you are doing.
And I do not use yet Unity 5 so I can't really tell...
I just re-adjusted the code in Start() to do a GameObject.Find() search. The thing is that in 2 years of using Unity I've never had to do this, so I'm confused.
$$anonymous$$eep in $$anonymous$$d that you are using a beta version, maybe it will be back, maybe it was removed by mistake, maybe it has been wrong for a while:
http://answers.unity3d.com/questions/399691/serializable-class-values-changed-in-inspector-won.html
Your answer
![](https://koobas.hobune.stream/wayback/20220613182420im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
C# Serialization is working fine in Unity but not on Android 2 Answers
Serialization Data not working on Android? 2 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Unity 3d - connect android to pc via usb 0 Answers