android - Unity UI Button, strange behavior with triggering OnClick() -
using unity 5.0. working on android.
i have canvas -> inside panel -> inside button.
the button has in button script onclick() gameobject linked. gameobject has script function.
when tap button trigger function, working on unity.
but when deploy project on android (4.4.2) device, works if tap , leave finger fast. otherwise if tap , wait second, when remove finger onclick() not called anymore.
seems triggering sort of "long tap" , ignoring normal tap. missing seetings? have not code @ all, function, rest done via unity inspector.
you suffer same problem did. check value "drag threshold" "event system (script)" find in inspector once select eventsystem in hierarchy. default value 5 tiny , briefest of touches not register click drag. increase size. use 20 , buttons work expected on android. reminds me have check on ios again well.
good luck
Comments
Post a Comment