Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: nah0y on July 30, 2012, 10:10:04 AM
-
Hi !
That would be really great if we could set a size for the effects outline and shadows from the UILabel object. Currently it takes a size of 1. But we need to make an outline of 3-4 pixels around a label...
I've tried modifiying the UILabel code to do that, but it seems that to do the outline, you're applying a shadow along 4 axes, and when I set to a size of 5 for examples, I have no outline, but an odd shadow around the 4 axes (up down left and right)
Maybe you could tell me how do to it properly ?
Thanks ;)
-
The outline and shadow effects are done by drawing the text multiple times, so I would not advise to use it to make the outline thicker. Better approach would be to bake this effect in Photoshop, or use a special approach with a custom shader using alpha-tested magnification. That would be this approach: http://www.tasharen.com/forum/index.php?topic=410.msg2004#msg2004
-
Hum thanks for the answer but I'll stick with a new font in Photoshop :)
Much more easy to do ^^