GUI tutorial?

I find GUI very confusing, are there any tutorials out there?

search in google you will a lot info regarding it.

not sure what I’m looking for.

Try the videos from Unite 2007 dealing with the new GUI. The documentation also has a good number of examples in it.

Barring a few oddities, I rather like it more than an event driven system.

It actually is an event driven system, it’s just a much better designed one than the old event driven system :wink:

Try adding Debug.Log(Event.current.ToString()); into an OnGUI(). You’ll get layout events, repaint events, mousedown events, etc… they’re events. Learning how to use them to your advantage makes your GUI-jutsu that much more powerful.

Im still in favor of keeping the old gui system around- I understand its faster on the iPhone too…So maybe the iPhone developers want to keep it about too?

Any rethink at UT HQ about dumping this?

I just find OnMouseDown() so straightforward.

/2c
AC

It’s faster on “real” computers as well, but they’re fast enough that you usually don’t notice the difference. And yes, the old GUI system is highly useful in many cases, iPhone or no iPhone, and should not be dumped IMO.

–Eric

maybe there should be a LITE version of UnityGUI for Iphone, so we can still use it without any noticable performance cost :wink:

i actually like the way new UnityGUI handle all the input :P, but i heard that using UnityGUI is quite expensive (especially on Iphone, even with useGUILayout = false)

Edit:
Alec, i use this tutorial for UnityGUI, it’s quite easy to understand for me:

http://unity3d.com/support/documentation/Components/GUI%20Scripting%20Guide.html

thanks Potan!

Not in the least, no. The plan going forward is to continue developing the Unity GUI system, including new features, optimizations and other improvements.