- Home /
This question was
closed May 31, 2014 at 03:31 AM by
AlucardJay for the following reason:
The question is answered, right answer was accepted
Help with GUI class
Hi everyone!
Does anyone know why would I not see this in the Game view on Play mode?
public AudioClip beep;
public GUISkin menuSkin;
public Rect menuArea;
public Rect playButton;
public Rect instructionsButton;
public Rect quitButton;
void OnGui (){
GUI.skin = menuSkin;
GUI.BeginGroup (menuArea);
if(GUI.Button(new Rect(playButton), "Play")){
audio.PlayOneShot(beep);
}
if(GUI.Button(new Rect(instructionsButton), "Instructions")){
audio.PlayOneShot(beep);
}
if(GUI.Button(new Rect(quitButton), "Quit")){
audio.PlayOneShot(beep);
}
GUI.EndGroup ();
Comment
Follow this Question
Related Questions
GUI Box with code defined GUIStyle does not show up... What am I doing wrong? 0 Answers
NullreferenceException, BeginScrollView style change 3 Answers
GUI Style Issue-- Texture not changing 2 Answers
How to Display only current instead of current/max on a GUI.Box 1 Answer
Distribute terrain in zones 3 Answers