set hex color in unity code example Example: hex color unity ColorUtility.TryParseHtmlString (hexString, out color);