Tutorial: Unity's GUI Tools

An introduction to GUI Textures, Text, and the OnGUI() script function.By Danielle Olson - shotgunfox .net »
Danielle Olson

Unity GUI Tools
Use Unity GUIs to create 
menus
in-game HUDs
navigation tools
... and more
by Danielle Olson
^ lol ^
Before you start, make sure you've:
downloaded Unity 2.6
familiarized yourself with Unity
created menu & button graphics
noted that I script in C#
shotgunfox.net
Create a new scene
Create an empty GameObject
Add Component: GUITexture

all graphical components you are using
Edit attributes such as
<: size
<: placement
<: borders
<: image
don't edit these
:>
:>
:>
To create buttons that...
... load a new scene (level)
void OnMouseUp() {
    Application.LoadLevel("Level1");
}

... more coming soon
void Method() {
    DoStuff();
}

*
to make advanced features like buttons that depress,
you'll need to have some skill with scripting.
If you're really stuck, you can email me at 

danielle@shotgunfox.net
To use GUIs for other interface elements...
... stay tuned
a GUI ("gooey" - Graphical User Interface) is responsible for just about every interaction between your program and your user. I'll be adding more how-to's on GUI elements soon, so check back often :)
1 GameObject for each background, button, banana, 

Loading comments...

Please log in to add your comment.

Report abuse

More presentations by Danielle Olson

More prezis by author