Creating Menu, Options and Pause Screens

Hi,

Can someone please point me in the direction to some info or tutorials on how to setup menu, options and pause screens within Unity for iPhone? I am new to Unity and I’d like to learn how I can implement screens into my project.

I found a great post in this forum for a Unity.Package called GUIManager. This package seems to offer the functionality I am looking for, but being a new user, it’s difficult to understand the implementation.

I’d greatly appreciate any advice.

Thanks,

Wes

Try this http://unity3d.com/support/documentation/Components/GUI%20Scripting%20Guide.html
OnGUI() is pretty easy, powerful and and usually works the best when your just looking for simple menus.

Great! Thanks for the info.

If I want to add an image that fills the iPhone screen as a background to my main menu, it seems that I would use the onGUI() to setup my gui. How do I add the background image? Is it through GUITexture? Also, it seems from what I’ve read that the GUI Buttons are expensive to use on the iPhone. Is this correct?

Thanks,

Wes

Found some good info on GUI Texture. This looks like what I’m looking for.

http://unity3d.com/support/documentation/Components/class-GuiTexture.html

Thanks Again!

Wes

GUITexture does not offer any GUI functionality, it only shows a billboard texture thats always in front of any 3d.
You need to implement click handling etc.

Thanks Dreamora!

Wes

Within OnGUI() you can use the GUI.DrawTexture(Rect(0,0,Screen.width, Screen.height), textureVariable) function to do what you’re looking for, if you prefer to keep it in all script. Just create a Texture2D variable in the script, and drag your texture on via the inspector.

And yes, the GUI system is rather expensive on the iPhone, but if you’re doing something like a pause menu (not running full 3d at the same time) then it should be fine.

But, GUIManager is great to use - it even offers animation capabilities!

Thanks 0turner0! Great Info.

Wes