Author Topic: UISlider with more than 11 steps?  (Read 4081 times)

Josh

  • Guest
UISlider with more than 11 steps?
« on: July 08, 2012, 08:52:12 AM »
Hi!

Just a short question, is it possible to have a slider with more than 11 steps?
« Last Edit: July 08, 2012, 11:47:57 AM by Josh »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UISlider with more than 11 steps?
« Reply #1 on: July 08, 2012, 06:10:53 PM »
If you modify it, sure.

ENAY

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 248
    • View Profile
Re: UISlider with more than 11 steps?
« Reply #2 on: July 08, 2012, 09:57:44 PM »
How do you modify it though? Do you mean in code?

This is indeed something I came across. The slider only seems to allow a maximum step of 0.1 if you try setting it in the editor.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UISlider with more than 11 steps?
« Reply #3 on: July 08, 2012, 10:28:29 PM »
Line 61 of UISliderInspector.cs.

Also, setting it via code doesn't cap it. Only the tool does, for convenience.

Josh

  • Guest
Re: UISlider with more than 11 steps?
« Reply #4 on: July 09, 2012, 02:18:57 AM »
thx, that will help :)