Author Topic: UIslider with float values of 2000-4000? Help?  (Read 3495 times)

devotid

  • Guest
UIslider with float values of 2000-4000? Help?
« on: May 18, 2012, 03:35:25 AM »
im trying to control a global variable with a NGUI slider and CANNOT figure out how to get from 0-1 to values like 20000-40000?

In Playmaker and unity i can ussually just set the beginning and end values and im done........:/

How can i do this in NGUI with only 0-1 values?

I have about 15 different sliders to configure (all with different amount of steps and value scales) so i didnt want to do math for all of these if i didnt have to.

Thanks very much for the help.

Kevin
devotid

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIslider with float values of 2000-4000? Help?
« Reply #1 on: May 18, 2012, 03:47:36 AM »
  1. yourValue = Mathf.Lerp(start, end, slider.sliderValue);

devotid

  • Guest
Re: UIslider with float values of 2000-4000? Help?
« Reply #2 on: May 18, 2012, 06:54:27 AM »
Thank you very much....... 8)

Kevin