Author Topic: Assigning the slider value to a variable.  (Read 2451 times)

shcool

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 5
    • View Profile
Assigning the slider value to a variable.
« on: July 25, 2014, 05:15:49 AM »
I want to assign the value of my slider to my float, how would I do that?

Sorry, but I'm one day N00b with ngui.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Assigning the slider value to a variable.
« Reply #1 on: July 26, 2014, 12:20:38 AM »
  1. float yourValue = GetComponent<UISlider>().value;