Author Topic: Gameobject outside clipping scroll view  (Read 6702 times)

Lotti

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 47
    • View Profile
Gameobject outside clipping scroll view
« on: July 25, 2014, 11:53:19 AM »
There is a way to know if a gameobject is fully outside the area of a scroll view with soft clipping alpha?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Gameobject outside clipping scroll view
« Reply #1 on: July 26, 2014, 03:18:05 AM »
Check its 'isVisible' flag.

Lotti

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 47
    • View Profile
Re: Gameobject outside clipping scroll view
« Reply #2 on: July 28, 2014, 04:18:15 AM »
every gameobject is always visible :\

i have a scroll view with a grid inside. scroll view is setted to "soft clip" and grid has "hide inactive" flag checked.
The direct children of grid are clones of a prefab with his own hierarchy (containing sprites and textures). isVisible is always true on prefab root's/children's widget.

Lotti

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 47
    • View Profile
Re: Gameobject outside clipping scroll view
« Reply #3 on: July 28, 2014, 04:52:03 AM »
ok, it needs some little time (WaitForEndOfFrame is not working, actually i'm using WaitForSecond(0.15f), to notice changes in visibility.

Thank you!