Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Lotti on July 25, 2014, 11:53:19 AM

Title: Gameobject outside clipping scroll view
Post by: Lotti 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?
Title: Re: Gameobject outside clipping scroll view
Post by: ArenMook on July 26, 2014, 03:18:05 AM
Check its 'isVisible' flag.
Title: Re: Gameobject outside clipping scroll view
Post by: Lotti 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.
Title: Re: Gameobject outside clipping scroll view
Post by: Lotti 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!