Search Unity

Mobile Slide Button

Discussion in '2D' started by Plopikoosy, Apr 8, 2015.

  1. Plopikoosy

    Plopikoosy

    Joined:
    Dec 20, 2014
    Posts:
    11
    Hi, I am currently trying to implement two buttons into my game. These are both mobile push buttons, left to move left, right to move right. I am using the dualtouch control rig thats in the sample assets for 2D controller. My issue is that I want the player to be able to slide between the two buttons and still activate them. Like when you slide from left to right it keeps the button pressed and keeps running left. Any thoughts on how to fix this? Like an OnButtonTouch method or something?

    Thanks :)