Hey
I have alot of different UI snippts divided into gameobjects that I turn on/off. The problem is that I have a background UI component that I really want to be the last one drawn, but I am at the same time using it for an animation.
Is there any clever way to handle this?
If you’re using unity GUI
Hm maybe centralize all your GUI that render GUI into a Manager with a List, and call all GUI (may be a ShowGUI() function by example) during its own OnGUI(), and refer the background GUI twice in the list.
Then you could have a bool firstGUICall that is switched during the GUI so that the function called by the script is different first and second time.