С помощью поля ввода мы легко меняем цвет текста:
Text text = _inputfield.transform.FindChild("Text").GetComponent<Text>(); text.color=Color.Red;
Как я могу сделать это с TMP_Inputfield (поле ввода Text Meshpro)
Оберните ваш текст тегом <color>. Например: This text is <color=red>RED</color> and this is <color=#ce490e>Orange</color> и присвойте его переменной text вашего textmeshpro
<color>
This text is <color=red>RED</color> and this is <color=#ce490e>Orange</color>
text