Author Topic: How do I stop clipping on child of a clipping panel?  (Read 2410 times)

rakberdin

  • Guest
How do I stop clipping on child of a clipping panel?
« 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?

rakberdin

  • Guest
Re: How do I stop clipping on child of a clipping panel?
« Reply #1 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);

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: How do I stop clipping on child of a clipping panel?
« Reply #2 on: May 04, 2013, 08:16:07 PM »
I'm glad we could help you with this.. :P