Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: johnnydj on May 14, 2014, 09:56:03 AM

Title: How to detect current item in Grid?
Post by: johnnydj on May 14, 2014, 09:56:03 AM
So I have a grid with 4 items. each item is in fullscreen and I can scroll between them.
What I want to do, is when I scroll to the last item in my grid, that load up a scene.
How can I detect which item I currently have in view?
I am also using UICenterOnChild. Is there a way to detect from there?
Title: Re: How to detect current item in Grid?
Post by: ArenMook on May 14, 2014, 11:13:01 PM
UICenterOnChild.centeredObject