I’m not talking about HTML tags, I mean actually colouring a certain part of the font. Say I’ve got a 3d-ish cubey font and I want to colour one side of it differently, a bit like the MTV logo. How could I do this? I’m imagining assigning R,G, B for each side, then somehow setting the colour in a shader of some sort. Only problem is id need to somehow use images as text, and write a shader for textmeshpro which I’m not sure how to do.
Thanks!
You should be able to easily achieve the desired result by using TMP with the full SDF shader where you can assign a texture to the face of the text in the Material inspector.
Assuming you wanted to control texturing specific characters or words, you would then need to assign different texture coordinates in UV2 where only the targeted characters would get their UVs changed.
Take a look at example 23 - Animating Vertex Attributes and related scripts. This example is included in the TMP Examples & Extras and show how to modify the text geometry after the layout to achieve this type of visual FX.
P.S. Using the above described method, you can only texture the whole character and not the sides for instance as the geometry of the text is a simple quad / 2 triangles.