My first use of a Repeat Button is apparently only triggering when the finger is lifted. Simple code:
OnGUI(){
UIRect = new Rect(100,100,100,100);
if (GUI.RepeatButton(UIRect, "press me")){
print ("PRESSED");
}
}
Draws a button and only prints “PRESSED” when my finger is lifted from my attached Android phone. What am I doing wrong?
dkozar
July 21, 2013, 8:21am
2
My first use of a Repeat Button is apparently only triggering when the finger is lifted. Simple code:
OnGUI(){
UIRect = new Rect(100,100,100,100);
if (GUI.RepeatButton(UIRect, "press me")){
print ("PRESSED");
}
}
Draws a button and only prints “PRESSED” when my finger is lifted from my attached Android phone. What am I doing wrong?
That should be due to GUI.Button operating only with mouse because it isn’t built for a touch interface. Touch events are “routed” to mouse events, but - if your observation is right - not fully.