- Home /
GUITexture Active and Enabled=false but still ı can click
ı have a guitexture in my scene.and ı want to click on guitexture one time and make it unclickable. ı am using hittest for get to touch on guitexture.
if( guitexture.HitTest(Input.GetTouch(0).position) ) { guitexture.active=false;
}
now guitexture is invisible. But guitexture still clickable.how can ı make it unclickable?
Thank you for help:)
Answer by jenci1990 · Dec 01, 2014 at 06:19 PM
Try this:
guitexture.gameObject.SetActive(false);
thank you for information but ı tryed to change local scale of guitexture to x=0,y=0 and now it unclickable. but ı will use setactive
Your answer
![](https://koobas.hobune.stream/wayback/20220613172915im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Gui , Message , Text, Touch and Question ? 2 Answers
Detecting Click/Touch in Unity iPhone (SpriteManager) 1 Answer
A node in a childnode? 1 Answer
GUITexture HitTest touch area 1 Answer
GUITexture touch play animation 0 Answers