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