Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: wprevett on May 11, 2017, 12:35:03 PM

Title: scrollview, no longer culling objects which swap parentage back and forth
Post by: wprevett on May 11, 2017, 12:35:03 PM
Hey Hey

I have prefabs inside of a scrollview.  The prefabs have their own UIPanel.

There is some functionality on the prefabs which swaps their parent gameobject from the current one, to a kind of modal window, and then back again.

When doing this, the scrollview no longer culls the items when they are out of the bounds of the scrollview.

I have tried setting the panel to dirty manually and it doesn't fix the issue.

Any insight?

Thanks
Title: Re: scrollview, no longer culling objects which swap parentage back and forth
Post by: wprevett on May 11, 2017, 03:48:10 PM
*solved*

I found the 'ParentHasChanged' function on UIPanel which has solved the problem for me.