Author Topic: How to change slider value?  (Read 2227 times)

yehua2006

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 1
    • View Profile
How to change slider value?
« on: June 07, 2014, 06:02:08 AM »
Hi there,

I want to create a slider to control a label to display the time when user dragging the slider, and the preset value is from 0 to 1, what I have tried is add a label associate with the slider, and drag and drop the label to the 'On Value Change notify', but the label is limited to 0 -1 or 0  to 100%, is it possible that I can change the min value and the max value for the slider?

Thanks in advance for any replies. thanks


ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to change slider value?
« Reply #1 on: June 07, 2014, 09:11:04 PM »
  1. float myValue = Mathf.Lerp(0, -1f, slider.value);