1. We've introduced thread tags, search within a thread and similar thread search. Read more here.
    Dismiss Notice
  2. Learn how you'll soon be able to publish your games to China in four simple steps with Xiaomi. Sign up now for early access.
    Dismiss Notice
  3. Get further faster with the Unity Plus Accelerator Pack, free for new Unity Plus subscribers for a limited time. Click here for more details.
    Dismiss Notice
  4. We've released our first Timeline Experimental Preview, our new tool for creating cutscenes and more! To check it out click here.
    Dismiss Notice
  5. Unity 5.5 is now released.
    Dismiss Notice
  6. Check out all the fixes for 5.5 in patch releases 1 & 2.
    Dismiss Notice
  7. Unity 5.6 beta is now available for download.
    Dismiss Notice

Touchable button

Discussion in 'Unity UI' started by barciu, Mar 20, 2017 at 7:30 PM.

  1. barciu

    barciu

    Joined:
    Monday
    Posts:
    1
    I'm creating a single screen 2D game and I want to create mobile touch controls for the player. I'd like an invisible slider/button that would give me the position of the current touch relative to the button's position. In other words, it should work like a horizontal slider that would be able to change it's position based on the user's finger location. I'm not interested in pointer down/pointer up events only, but I need to continuously check the position of the finger. I hope my description is clear enough. Please, help me, because it's my first Unity game and I'm struggling.