|
I would like to add a drop shadow/border/glow/texture to the fonts used in my GUISkin. I know you can use a script to save out the font texture, edit it and then apply it through a custom material (lots of posts on that). However, is there any way to customize the font used in UnityGUI (i.e. through a GUIStyle/Skin)?
(comments are locked)
|
|
You can't, sorry; OnGUI functions use TrueType fonts only.
(comments are locked)
|
|
We created a DropShadowText script that will draw two labels, one slightly offset and darkened behind another label. Rotten performance wise, but the only way to simulate such an effect. At least in Unity 3.0, you can use dynamic fonts to resize, and bold/italicize. That's more than was available before.
(comments are locked)
|
|
You can. Unity imports true type fonts and converts them into bitmaps (images). The idea is you extract that image as a file, edit it in your image editing tool like Photoshop, then put it back in. http://www.unifycommunity.com/wiki/index.php?title=SaveFontTexture Take note its not a good idea to add effects that go beyond the boundaries of the letters. Adding gradients or small drop shadows are fine. That is one of scripts I referred to, but it is for GUIText/using a material, not OnGUI/GUIStyle objects.
Mar 12 '11 at 04:43 PM
Molix
(comments are locked)
|
