Hello,
I know I'm probably trying to get more than I can out of NGUI by trying to do this but I thought I'd ask before I attempt a different method.
Here is how my hierarchy is setup:
UIRoot
Camera
GameObject (just a holder to help organize)
GameObject (same as above)
GameObject (I like to organize, without seeing everything it seems unlikely)
UIScrollView/UIPanel (with Clipping)
UIGrid
Collider/ScrollView/Button
UILabel (name)
UIPanel (with Clipping)
UILabel (long description)
To explain, I have a scroll view of a bunch of prefabs (the button level), each of these prefabs have two labels (one is hidden at start) and when you click on the 'short description' label, the long description tweens down. I'd like to have the second panel there so I can clip the second label to make it look like I'm having the second label drop down from behind it but also keep it so that the labels don't overlap (looks ugly). However when I have enough of these prefabs in the grid, and I scroll up or down with these descriptions open, the second panel overrides the clipping of the first (as intended I know), and the longer description is being shown outside of the bounds of the first clipping region.
Is there a way to have the second description apply to both clipping regions so that when I scroll far enough the description disappears as intended? Or will I have to figure out the logic on my own?
To try and make it simpler, can I have a child panel have it's children clipped by it's region and the region of all of it's parents?