- Home /
Question by
ina · Mar 15, 2011 at 07:55 AM ·
guionguifixedupdate
putting gui elements in fixedupdate
To control how many times guielements are rendered, would it make more sense to put them all in fixedupate?
Comment
Answer by Mike 3 · Mar 15, 2011 at 08:05 AM
Unity's GUI system only works from OnGUI - there are many reasons for this, the main reason is that Unity calls it multiple times to work with user input
If you mean GUIText and GUITexture, that's another matter, feel free to change those from wherever you like
do you have any suggestions for optimizing ongui with a somewhat complex UI - it seems to slow everything down?
Try putting useGUILayout = false; in Start, that'll help considerably if you aren't using GUI.Window or GUILayout calls. Besides that, you could try using a sprite based solution (EzGUI and the like)