Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: J. Park on June 24, 2012, 04:33:09 AM
-
First of all, thank for adding useful feature like Packed Font, because I use Asian language.
But I experienced depth problem when using multiple atlas with UIWedget. I use Packed Font Text in UIWidget like button. For example, in case 1 (refer to attached image), 2 buttons and 1 label are displayed correctly. All texts are Packed Font which used different material with background. I checked “Depth pass” in UIPanel.
However, in case 2 (refer to attached image), when I moved a label a little bit backward, all texts in buttons go behind buttons' background. I want to arrange positions of UIWidgets independently (using Depth property or Z- position) even though draw calls increase. Is there possible way? "Depth pass" property in UIPanel seem to work for widgets only in same material.
-
Read this: http://www.tasharen.com/forum/index.php?topic=6.msg238#msg238
And this: http://www.tasharen.com/forum/index.php?topic=767.msg3955#msg3955
-
So.. there is no solution?..
Using different UIPanel with button text and button background does not seem to be a practical solution, because a button text and button background is conceptually one widget.
Is there any way to display widget (perhaps optionally) without UIPanel like EZGUI using Unity's own batching system? I can manage to control draw calls hiding unnecessary widgets at the moment..
If not.., can it be supported in future update? At the current version of NGUI, using UIPanel is mandatory. It would be nice if I can optionally select not to tie up widgets into a single mesh..
I really want to utilize Packed Font...
-
EZGUI doesn't batch anything. It relies on Unity's dynamic batching system to do the work, which half the time doesn't work.
UIPanel is mandatory because that's what actually creates the batched geometry. If the UIPanel is missing, it gets added automatically. You can add your own UIPanels, separating everything if you want it to be just like EZGUI -- just ensure that every widget's parent has a unique UIPanel, and there you go: same behaviour as EZGUI.
The posts I linked explain how it all works and how you can separate things by adding an extra UIPanel btw. The solution is explained. In your case all you have to do is add a single UIPanel to the orange button.
-
That's what I want.
Thanks you very much.