Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Unity 2018.3 is now released.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Disallow children of Slider Handle from initiating Drag

Discussion in 'Unity UI & TextMesh Pro' started by ChaiKnight, Dec 6, 2018.

  1. ChaiKnight


    Apr 11, 2013
    I have a Slider with its Handle outside the Slider area. Above and below this Handle I have a two Buttons that increase and decrease the Slider value. These Buttons are children of the Handle object so they follow it up and down.

    When I press the buttons, everything is fine, but they also initiate dragging the Handle which they should not. I could remove their child status, just making them children of the Slider, and add a script to each of them to follow the Handle up and down, but I would prefer a more elegant solution.

    Any ideas?

    Here's a picture of my scenario: example.PNG