unity script color from hex string code example
Example 1: new Color from hex in unity
Color greenColor;
ColorUtility.TryParseHtmlString("#0AC742", out greenColor);
Example 2: unity get hex from color
ColorUtility.ToHtmlStringRGB( myColor );
Color greenColor;
ColorUtility.TryParseHtmlString("#0AC742", out greenColor);
ColorUtility.ToHtmlStringRGB( myColor );