- Home /
Question by
TakMarche · Mar 14, 2013 at 09:58 AM ·
androidguitexturetouchphase
OnMouseDown() & OnMouseUp() for Android
In a pc / web build I would normally use the OnMouseDown() and the OnMouseUp() function to perform certain task like (when down make the image 2x bigger and on up make it normal size) but I've been messing around with
"touch.phase == TouchPhase.Began && guiTexture.HitTest(touch.position)"
and
"touch.phase == TouchPhase.End && guiTexture.HitTest(touch.position)"
But it doesn't seem to be doing the trick like OnMouseDown() and the OnMouseUp(). I kind already figured that TouchPhase.End is for when the finger is lifted off of the screen but is there a way for it to be off of the certain GUITexture?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613094402im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Android Touch 1 Answer
I Need a script for a guitexture enableing a spotlight and play a sound when pressed 1 Answer
Scrolling gui texture up and down, Android 1 Answer
GUITexture for android 0 Answers
Android Touch Input GUITexture 2 Answers