- Home /
How to check if child item is visible in ScrollView?
I have a scroll view and have child elements in it (Imagine it's the GMAIL phone app). How can I check if one child element is visible or not while scrolling in the list? I tried OnBecameVisible and OnBecameInvisible but it seems that they are not even being called.
Get screen top endpoint position of y screen down endpoint position of y
chack if your object position of y is between these points.
Answer by xinyunzhong · May 16, 2020 at 12:27 AM
My intention was to improve the performance on older phones. However I found that the bottle neck is not the viewing/rendering but I hav enabled pixel perfect. As sonn as I removed pixel perfect the performance is up again.
Your answer
Follow this Question
Related Questions
Focus on Selected Item in Vertical Scrollview 0 Answers
Make Scroll View size fitting to children size in one dimension 0 Answers
Moving a ScrollRect child via script to focus on some point. 0 Answers
How to start Scroll Rect content off screen 0 Answers
Scaling scroll view width to its content width or vice versa 0 Answers