Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: jerotas on August 01, 2012, 03:17:31 AM

Title: Items inside Draggable panel disappear then reappear.
Post by: jerotas on August 01, 2012, 03:17:31 AM
Hey, so I have my draggable clipping panel working more or less, thank you Aren! There are still 2 problems.

1) On the items in my grid (all identical), the UILabels clip a few pixels lower than the UISprites we are using as a background. i.e. the UILabels go over the panel border. It looks weird. Why would this be happening?
2) As I drag the clipping panel very slowly, you can see the UILabels disappear and reappear several times as each UILabel goes off the upper part of the clip area. Very very strange. It's not just the item that's going off the screen either. All UILabels on all rows do this at the same time when this occurs. Baffling....

Any ideas to try?
Title: Re: Items inside Draggable panel disappear then reappear.
Post by: ArenMook on August 01, 2012, 04:19:56 AM
1. Just adjust the clipping area.

2. When you start dragging, widgets don't get clipped and don't check to see if they're visible or not. This is an optimization feature. I assume you're referring to the rectangles appearing / disappearing in the scene view. That's nothing to worry about. If you see actual labels appear and disappear in game view, then you've got a problem -- namely your clip shader isn't working.
Title: Re: Items inside Draggable panel disappear then reappear.
Post by: nah0y on August 01, 2012, 05:26:25 AM
I'm stepping in the discussion here,

I have the same problem sometimes, and it's because I have two atlases, one for all the sprites and one for all my fonts, and I need to set all my fonts to Z = -1 to avoid this problem.
Title: Re: Items inside Draggable panel disappear then reappear.
Post by: iretrograde on October 29, 2012, 07:02:06 PM
Hey Guys,

I got the same issue. I have two atlases (one for my fonts and one for my objects) and the font keeps disappearing and re-appearing. I'm going to assume that it's the same issue as nah0y described above. Would really like to fix this but would rather not have to put all of my textures in one atlas since I'm not sure they will all fix.

I'm gonna try a few approaches to see what happens. Thanks for the info on the multiple atlases and it's impact nah0y!
Title: Re: Items inside Draggable panel disappear then reappear.
Post by: ArenMook on October 29, 2012, 08:24:22 PM
http://www.tasharen.com/forum/index.php?topic=1858.0