- Home /
android input problem?
Hello guys and @alucardj,
Pls guide me how to activate a GUI texture on touch. Below is the code that i am using
but here the code getting activated where ever i touch on the screen....but i need this piece code to be activated only when i touched the perticular GUITexture.
2.and when my finger is on the screen its loading the level which i want but the camera in the new scene is keep on rotating?
Pls help in the above two cases....
var Play: GUITexture;
function Update() { if(Input.touchCount == 1) { var touch: Touch = Input.touches[0]; if(touch.phase != TouchPhase.Ended && touch.phase != TouchPhase.Canceled) Debug.Log("load level");
Application.LoadLevel(1);
} }
Your answer
Follow this Question
Related Questions
GUI.Button Touch Input Problem 1 Answer
Main menu touch input for android 2 Answers
Android GUITexture Touch 0 Answers
Button reaction time problem 1 Answer
Android Buttons Responding Poorly To Touch Controls 2 Answers