- Home /
How can i show points with this design?
Hi, I am working on one infinite game and for points i was using simple 3d font but now the requirement is points(Score) should be in (below image) this design manner how can i show score with this design if anyone know please help me...
Answer by Tekksin · May 09, 2014 at 07:36 AM
You're talking about adding a stroke around your font? Though you are able to use custom fonts, by dragging the font file into your Assets folder, and then applying it in something like a GUItext object, or a [var name : GUIStyle;] (apply it where the variable in the inspector reads: Font), unity doesn't have a way of adding a stroke to text (the white outline surrounding your example).
This can be faked with multiple versions of your white text with 1 pixel (or so) offsets in the x and y axis, positioned behind your gray colored text.
Some people opt to use materials to fake this, but I'm unsure how to do that, and there is also middle-ware available on the asset store to help you out. Otherwise, there's no way to code it, or flip a switch to make it appear.
Thanks Tekksin actually my client want design only like that i know i can use font but for that design may be i need to use 10 images.
Your answer
Follow this Question
Related Questions
Custom Font - Text Mesh Font Size 0 Answers
How can I set the UI Text font size higher than 300px ? | Unity 5.4 2 Answers
How to find a font via script? 2 Answers
Is there a way to measure the pixel with/height of a string with a given font? 2 Answers
How to calculate font size (or scale) for a given area base on how long a string is? 1 Answer