Having a problem changing text colour via script. Should be pretty simple. All I’m doing is this:
message_box.GetComponent<TMPro.TextMeshProUGUI>().color = new Color(0f, 127f, 212f, 255f);
I’ve got the textmeshpro “color mode” set to single not gradient. Tried changing vertex color. Didn’t work either.
I can change it in inspector during game view, but as I say it won’t change via script. I’ve checked everywhere that I’m not changing it somewhere else. I’m not.
Any ideas?