|
Hi.I am new here and i have a question. I have a Main Menu and 3 buttons.Start Game,How to play and Options. I want when i press the button Options to go to another scene that is attached the script below. My problem is that when i press the Options button i go to the scene but i cant see anything. Can someone fix it? I think its easy but i dont know how.. thanks Here is the script! With that script i can change the volume and the graphics of the level.
(comments are locked)
|
|
Try nesting all your calls to GUI classes in the function OnGUI() The problem is that you have no entry to the scripts to draw anything. Edit:
If that is applied to a game object, you should see a button drawn at 100,100. Cheers, == ah please if its easy can you do it for me because i dont understand. Where to put that the OnGui(). Do i have to put a print in the code to show all of this? Please help!!
Jul 15 '10 at 01:56 PM
thomas 2
I won't write your code for you, no, but I will give you an example to build off of.
Jul 15 '10 at 02:17 PM
equalsequals
OnGui() goes into any script that's attached to a GameObject. And he put a print only for demonstration purposes, you would put your game code there instead. Finally, I highly recommend you run through some tutorials: http://answers.unity3d.com/questions/4897/how-can-i-start-learning-unity-fast-list-of-tutorials
Jul 15 '10 at 02:35 PM
Cyclops
(comments are locked)
|
|
Well, do you have a camera in that scene that would be looking at the Options "menu"?
(comments are locked)
|
