Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Sahkan on May 11, 2014, 12:49:53 PM

Title: How do i get the current sprite that is in the middle of the scroll view ?
Post by: Sahkan on May 11, 2014, 12:49:53 PM
Let's say i'v picked a date : a day,month and year. how can i get the centered label via script so i can store the chosen day within a struct or w/e ?
Title: Re: How do i get the current sprite that is in the middle of the scroll view ?
Post by: ArenMook on May 11, 2014, 02:11:26 PM
If you used UICenterOnChild, UICenterOnChild.centeredObject. If you didn't -- math! Look inside the math inside UICenterOnChild for an example.
Title: Re: How do i get the current sprite that is in the middle of the scroll view ?
Post by: Sahkan on May 12, 2014, 12:01:31 AM
Thanks ! I will check it out .