characterInfo.color vs meshInfo.color vs color order of precedence

I was curious what the order of precedence is for individual character color. You can set it on the meshInfo.color32 (by the way, why is this array 256 long???), on the individual characterInfo objects, and on the TextMeshProUGUI object too.

All the data contained in the textInfo gets populated when the text object is processed and rendered. This data is informational only. Changing any of that data has no effect on the text object.

Data such as the content of the meshInfo can be used / modified and then pushed to the mesh of the text object. See examples like Animating Vertex Attributes and related scripts for examples of usage.

The arrays in the textInfo are allocated in blocks. As such their size will rarely match the underlying text data. The textInfo.xxxCount should be used when iterating over these.

1 Like