- Home /
GUI Button is not responding click event
I have background image and displaying button on the image. When i click the button it should goes to next scene But i can't able to click the button and happening. Do i need to enable the image should clikable with button.
GUI.DrawTexture(new Rect(0,0,Screen.width,Screen.height), texture);
if (GUI.Button(new Rect(80, 900, 500, 360), btnTexture)){
Debug.Log("Clicked the button with an image");
Application.LoadLevel("25Nov1");
}
Comment
Is the button not at all clickable? Have you added your "25Nov1" scene to your build settings?
Do we need to activate the background image user interaction enable?
Answer by karthees · Sep 30, 2014 at 08:38 AM
Sorry...It's loading but taking too much time to switch to scene? What should i do?
Reduce the size of the next scene, or split it and load it additively.
Your answer
Follow this Question
Related Questions
Programming a texture to act as a button... 1 Answer
Switching scene problem 1 Answer
GUI.Button Texture Problem - Simple? 2 Answers
Gui Button zoom 1 Answer