How to edit TextMesh.mesh so I can change vertex colors

I want to edit the vertex colors of a TextMesh’s mesh so I can create gradients and change text color by letter for cool animations/ fancy graphics.

However, I can’t seem to find a way to access the output mesh of the TextMesh component, and I have spent close to an hour searching for it so I am pretty stumped right now.

Is there any way to get/ set a Text Mesh’s mesh? If so, how? Also, I would prefer not to rely on third party extensions.

The mesh isn’t accessible.

–Eric

That’s a bummer.

Is there anyway to edit mesh colors using MeshRenderer.additionalVertexStreams then?
Would it work if I set TextMesh.color to null?

Imho the TextMesh shows the text as a rendered texture (via a plane). So you can’t modify the text or letters.

TextMesh doesn’t inherit from MeshRenderer. This is 100% of everything that’s possible with TextMesh: Unity - Scripting API: TextMesh

–Eric