- Home /
How to make Iphone Menu-Unity
I need to know how to make a menu (for the iPhone) in unity. I don't know how to make the touch screen as a click, or if it's fine as it is, and it will automatically work. Do I need new text and add a script? If so, can I PLEASE!!!! have the script????I got the background scene all figured out, i just need multiple 'links' or "buttons" to get to the other levels, thx!!!
Answer by Daniel 6 · Jul 12, 2010 at 05:12 AM
Here's an example on how to create a simple button in Unity:
function OnGUI () {
if (GUILayout.Button ("Load Level 1")) {
// Do your load code here. I'm assuming Application.LoadLevel ();
}
}
Answer by Thom Denick · Jul 12, 2010 at 05:06 AM
Hello,
You are asking about some pretty complicated iPhone Unity functionality. Working with complicated GUIs is probably not the best option for a first Unity project. I'd recommend going through the Penelope tutorial here:
http://unity3d.com/support/resources/tutorials/penelope.html
Which has a section on how to make touchable-on-screen GUI elements.
Your answer
Follow this Question
Related Questions
Creating a bot to test my own game 3 Answers
Making a GUI Texture tappable on iPhone 4 Answers
How do I create a Gmod item spawn menu in unity? 0 Answers
GUI Menu Display Help 2 Answers
Back button on menu to go back to previous menu screen 0 Answers