I’ve been doing some research on how to get an outline on my 3D text within my scene. I can’t believe that there isn’t a shader out there that allows me to add a simple outline to my 3D text?!?
Saying that, I have found some attempted shaders, but they don’t give the desired effect (pixilated stroke, etc).
I have found that you can export the actual font texture and edit that in Photoshop, but thats a pain in the arse as I have to do it for each fill colour, stroke colour and font size I use throughout my game.
Surely, there must be something out there in where I can just define the stroke colour, and size, and boom! its there …?
If you are after a simple process to add an outline to a text object, then I would use TextMesh Pro which allows you to add an outline / stroke dynamically and much more. All these styling options are real-time and dynamic. No need for Photoshop or editing font textures.
Here is an example (1) the plain text, (2) text with an Outline and (3) Just the Outline.
The only difference between those 3 text objects are different material properties. For instance, here is another example with a soft shadow with slightly thinner outline / stroke.
To learn more about TextMesh Pro, you can check out the Asset Store Thread.
Hopefully my answer gives you some good insight on some alternative ways or workflow to achieve the results you seek.
P.S. In case you are wondering, the text with outline and shadow is still one single text object. Not several duplicates.
It’s raw and straight forward but I solved this problem by adding 4 shadows to each text. Place them by using a combination of positions between -1 and 1 on the x and y axis. I don’t know if and how this would work for 3D texts but it looks pretty good for 2D ones.