- Home /
How to handle inactive object updates
So I'm fairly new to Unity, I've completed the Junior and Essentials Pathway and know a bit of .Net but I'm finding that knowledge increasingly useless since I didn't use C#.
I'm working on a game right now, and I'm creating all of the UI and backend stuff first, and I have my inventory UI, player stats UI, and the console UI done, and working on a central radial to navigate between them. The problem I'm having is that when I make them inactive it starts throwing errors because the script controllers are attached to the player.
What is the best way to handle this issue? Can I attach the controllers to their respective panels? If I do that will it throw the "Start" method every time the GameObject is set to Active? I'd test it myself but I'd rather ask in case there's a much better way of doing it and save some time. Thanks for any responses, its greatly appreciated!
Start and Awake are only called once for the lifetime of an object. OnEnable is called every time it is enabled.
Your answer
![](https://koobas.hobune.stream/wayback/20220613040932im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
UnityEngine.UI stopped working 0 Answers
gameobject not setting active after timer ends 2 Answers
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
gameObject.SetActive (true); Not working 10 Answers