I am trying to make a menu interface for a mobile game. I want the button that the user currently has their finger on to be triggered and not the button where they put their finger down. I would like it so they could move their finger around the menu UI and not have a selection made until they lift their finger, and have the button fire that the finger was on.
Implement IPointerUpHandler interface. See answers in this thread.
You can just use somthing like this:
if(Input.touches.Length > 0) {
if(Input.touches[Input.touches.Length-1].phase == TouchPhase.Ended) {
//do something...
}
}