Author Topic: Disable UISlider?  (Read 2331 times)

rgeade

  • Guest
Disable UISlider?
« on: August 19, 2013, 08:57:14 PM »
I have a few UISliders that should only be enabled after an In App Purchase is made.  I was trying to find a way to disable them, but I don't see a method in the script reference for disabling/enabling a UISlider.  As a workaround, I just created a purchase button that covered up the UISliders, but it seems that the touch events bubble through to both the button and the UISlider, so you can still move them through the button that is on top of them.

Am I missing something simple?  Ideally, I'd like to call a setEnabled = false, and see the Slider grey out and stop responding to touch events.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Disable UISlider?
« Reply #1 on: August 19, 2013, 09:11:57 PM »
Same as anything else. Disable the collider, and there won't be any events.