Current behavior of monobehavior in inactive object.
I'm using unity3d 5.3.3f1, I have a code that will initialize a array of scene object. The array of scene object is referenced in the scene and some of them are active and some are not. When I call a function of monobehavior in a inactive to change a GUI label text, the GUI label will do not thing. When the gameobject is active, every is work as expected. When I was using unity 3/4, when a gameobject is inactive, calling monobehavior function in it to change UI object will actually change the object. I find it is not the case in 5.3. So after unity5 the right way to initial a gameobject is first setactive(ture) then change it back?
Your answer
![](https://koobas.hobune.stream/wayback/20220612074355im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Emissive Blended Decal 0 Answers
Text Component Size is not Adjusting 1 Answer
Remove Object from Game after Collision with Player (Unity 5.2.3f1) 1 Answer
Unity is totally broken. 1 Answer