Welcome,
Guest
. Please
login
or
register
.
April 30, 2026, 12:09:39 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
How do i get the current sprite that is in the middle of the scroll view ?
« previous
next »
Print
Pages: [
1
]
Author
Topic: How do i get the current sprite that is in the middle of the scroll view ? (Read 3485 times)
Sahkan
Jr. Member
Thank You
-Given: 9
-Receive: 0
Posts: 74
How do i get the current sprite that is in the middle of the scroll view ?
«
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 ?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: How do i get the current sprite that is in the middle of the scroll view ?
«
Reply #1 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.
Logged
Sahkan
Jr. Member
Thank You
-Given: 9
-Receive: 0
Posts: 74
Re: How do i get the current sprite that is in the middle of the scroll view ?
«
Reply #2 on:
May 12, 2014, 12:01:31 AM »
Thanks ! I will check it out .
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
How do i get the current sprite that is in the middle of the scroll view ?