Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: rakberdin on May 03, 2013, 07:47:27 PM

Title: How do I stop clipping on child of a clipping panel?
Post by: rakberdin on May 03, 2013, 07:47:27 PM
I have a scrolling list implemented with a clipping uipanel. Below that is a gameobject with a uigrid on it, and below that are the grid elements (children) with some UIDrag Object scripts.

The problem is, when I drag individual children out of the list, they stay clipped by the top level clipping panel. How can I disable clipping on my specific child that I'm dragging out of the list?
Title: Re: How do I stop clipping on child of a clipping panel?
Post by: rakberdin on May 03, 2013, 08:12:47 PM
Haha! I've found the answer to my own question thanks to the drag+drop example that came with the NGUI package.
If anyone is wonder the keys to doing this were:

parenting the object I was moving temporarily to a dragdrop root outside of the scrolling list and then:
NGUITools.MarkParentAsChanged(gameObject);
Title: Re: How do I stop clipping on child of a clipping panel?
Post by: Nicki on May 04, 2013, 08:16:07 PM
I'm glad we could help you with this.. :P