- Home /
New Unity GUI tutorials
I've been making a GUI out of OnGUI calls for about a week now, and it's starting to get really laggy. I looked around and found that Unity had released a new GUI system in 4.x. I'm using 4.3 and I really want to start using this new GUI. Does anyone have any links to some good or official tutorials to start using the new GUI system? Thanks :).
Answer by Mimumu84 · Mar 11, 2014 at 10:54 PM
Check this link out : http://blogs.unity3d.com/2012/06/29/the-new-gui/
I see now that the new GUI system is yet to be released :(, but thanks for the link. I guess I'll just have to try and optimize the GUI that I already have.
Are you trying to create 3d gui? Or something different?
You also see that the link in the answers is 2 years old and then irrelevant to your question.
OnGUI has the issue of being called multiple time per frame which is one of the reasons for your lagging. You could try with GUITexture and develop your own system with it.
With it, you can control the method calls and the fact that drawing is done only once per frame.
It is also possible to limit the amount of drawing with OnGUI by the way.
I watched the State of the GUI in the Unite 2013, and it still seems that the new GUI has not been released. I am used to GUI system like NGUI, but I don't want to pay for them. I was hoping that there was a faster and easier to use GUI system, but apparently not. I don't think I can use a GUITexture because I use multiple text areas, and it would be hard to draw it out. If you have some tips for doing this, they would help. Thanks :)
Your answer
