unity convert color to hex code example
Example 1: new Color from hex in unity
Color greenColor;
ColorUtility.TryParseHtmlString("#0AC742", out greenColor);
Example 2: hex color unity
ColorUtility.TryParseHtmlString (hexString, out color);
Color greenColor;
ColorUtility.TryParseHtmlString("#0AC742", out greenColor);
ColorUtility.TryParseHtmlString (hexString, out color);