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.
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?
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.
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!