Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: NateJC on May 21, 2014, 10:50:41 PM

Title: UIScrollView - detecting which object is mostly centered
Post by: NateJC on May 21, 2014, 10:50:41 PM
I have a UIScrollView and I'm also using a UICenterOnChild. As dragging occurs, I would like to execute a function whenever a new UISprite becomes the new object that is *mostly* in the center (ie, the object that would be snapped to using UICenterOnChild if dragging stopped).

I would like to update information outside of the ScrollView based on which object is currently (mostly) centered. Any suggestions?
Title: Re: UIScrollView - detecting which object is mostly centered
Post by: ArenMook on May 22, 2014, 03:24:22 PM
UICenterOnChild.centeredObject