Author Topic: Slide Automatic to start position?  (Read 2948 times)

Cean

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Slide Automatic to start position?
« on: April 10, 2014, 06:59:32 AM »
I hav 1 UISlider an start position is centered. See picture.

When I push it up or down. I will Slider goes back to start position. (Smooth Slide to Center)

Cann someone write sample code.

Cean

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: Slide Automatic to start position?
« Reply #1 on: April 11, 2014, 10:22:19 AM »
nobody can help me?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Slide Automatic to start position?
« Reply #2 on: April 12, 2014, 04:24:56 AM »
This is a support forum for NGUI, not a scripting help forum. Write a script that modified the slider's value, springing it to 0.5 if the mouse button is not held.