Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: duncanx on August 21, 2013, 01:05:12 PM

Title: Draggable Panel current position
Post by: duncanx 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).
Title: Re: Draggable Panel current position
Post by: ArenMook on August 22, 2013, 11:31:12 AM
UICenterOnChild script figures out the position if you need an example.