Author Topic: Draggable Panel current position  (Read 3026 times)

duncanx

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 23
    • View Profile
Draggable Panel current position
« on: August 21, 2013, 01:05:12 PM »
I'm building a UI very similar to the draggable panel example. Redundant to the drag, I also have some left and right arrow clickers that need to move the table back and forth. I've figured out how to spring the table to a particular item position. But the problem is I can't figure out how to determine the current position of the table (since the user can drag it without using the clickers). A typical scenario might be that a user drags the table to item 3, but then clicks the right arrow which should advance it to item 4 (knowing that it was left resting at item 3).

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Draggable Panel current position
« Reply #1 on: August 22, 2013, 11:31:12 AM »
UICenterOnChild script figures out the position if you need an example.