Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: ciaravoh on February 12, 2014, 05:34:41 PM
-
Hello,
I have a scroll view with some items, centered. I need to know which Item is selected. How should I perform this ?
thank you.
Hervé
-
UICenterOnChild.centeredObject tells you just that, if you're actually using that script. If not, then you need to do some math -- and I would recommend looking inside UICenterOnChild.Recenter function, as it performs that math inside.
-
Thank you. I will give it a try.
Regards,
Hervé