Author Topic: Getting visible items inside a scrollview  (Read 6101 times)

Artheus

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 3
    • View Profile
Getting visible items inside a scrollview
« on: October 24, 2014, 04:27:25 PM »
What is the easiest way to get all the items that is visible inside a scrollview window?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Getting visible items inside a scrollview
« Reply #1 on: October 25, 2014, 02:47:46 PM »
Loop through them, check UIWidget.isVisible.

bloomk

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 38
    • View Profile
Re: Getting visible items inside a scrollview
« Reply #2 on: November 24, 2015, 04:32:44 PM »
has something changed? Thesis not working. Items are not visible but isVisible = true...

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Getting visible items inside a scrollview
« Reply #3 on: November 25, 2015, 05:50:59 PM »
Scroll view's panel has the "Cull" option. Ensure it's checked. Other than that, no nothing changed. UIWidget's isVisible will be 'false' if it's not visible.