I am setting my textmeshpro's text color with RGBA values. I would like to set it instead with hex code. I have an array of hex color values. How do I set this in Unity?
using UnityEngine.UI;
public TMP_Text textMeshPro;
public string[] colorListHex = { "#FF0000", "#754C24", "#5DA500"};
void Start(){
textMeshPro.color = new Color32 (255, 0, 0, 255); //How do I set it to be colorListHex[0] instead of using rgba?
}