Author Topic: scrollview, no longer culling objects which swap parentage back and forth  (Read 230 times)

wprevett

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
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

wprevett

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
*solved*

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