Author Topic: uiwrap move to value from script  (Read 1343 times)

tinken

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
uiwrap move to value from script
« on: January 11, 2015, 02:28:56 AM »
Hi all,

I have a problem with a UIWrap.
I have a vertical scroll with a range limit (-50 to 0), and I have to set the scroll position from the script. Is there a method for this or I have to calculate the panel position and set my children correctly?
I have only 2 children in the uiWrap as it display numbers, I don't need more.
Could you tell me if my approach is right and so how I can set my value?

Thanks in advance
-Tinken

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: uiwrap move to value from script
« Reply #1 on: January 12, 2015, 01:19:13 AM »
If you want to move the scroll view to a specific position, you can use SpringPanel.Begin. You can see it used in UICenterOnClick and UICenterOnChild, for example.