Making a word guess game, and I’m trying to make some of the text invisible, but I would like the underline to be visible still… Apparently setting alpha of the text to 0 and the underline to 255 still doesn’t work (guessing because it shares the character alpha in some way).
Using underscore doesn’t work, I need to have it completely aligned so I can animate the text in without the structure of the other text doesn’t change.
Even going back and setting alpha of the vertices of the underline doesn’t work. I would do masking, but I’m using the pre-release URP shaders 'cause I wanted the text to interact with the scene, and the surface shader doesn’t work in URP it seems?
Edit: Also seems you can’t have just spaces or in a text? (just a string of non breaking spaces)
Changing the alpha of the vertex colors of the characters vs. underline geometry should work. The underline geometry is usually at the end of the geometry used for the text.
I would suggest taking a look at the Animating Vertex Attributes example and included scripts to get some insight on how to modify and then resubmit the geometry for rendering without forcing a new layout update which would undo the vertex color changes.