Godot Version
Godot 4.2.1 .NET
Question
Hey there! I’m working on a dialogue system where I’ve got a dialogue bubble appearing above an entity in 3D space with a TextMesh inside of it. What I’d like to do is grab all the vertices of each individual text character and be able to apply separate animations to them. Think like making a specific word wavy or have it shake.
Below is an example of what I’d like to achieve with a TextMesh divided by text character, but this is a hard-coded shader that basically tries to separate the UV area into separate characters and apply a different positional change to each. Not much flexibility to apply on a per word basis.
Is there any way I can get the vertices of each individual character in a TextMesh’s text? And is there any word on TextMesh supporting more Text functionality like visible characters, “\n” new lines or tracking how many lines there are?
In the case of number of lines, I can track that by checking the TextMesh’s AABB.Size.Y, but you can imagine it’s not so graceful and depends on the font and its pixel size. Is there a way to track a TextMesh’s Text number of lines that I’m missing?
Overall just looking for more ways to work with a TextMesh’s vertices + Text and wondering if I’m missing something. Appreciate any help here, have had a great time experimenting with TextMeshes and super excited for future updates!