putting gui elements in fixedupdate

To control how many times guielements are rendered, would it make more sense to put them all in fixedupate?

1 Answer

1

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)