Esempio n. 1
0
        public Color GetPropertyColor(string propertyName, Color defaultValue)
        {
            string  propertyString = this.GetPropertyString(propertyName);
            Color32 c;
            Color   result;

            if (propertyString == null || !ColorUtility.DoTryParseHtmlColor(propertyString, out c))
            {
                result = defaultValue;
            }
            else
            {
                result = c;
            }
            return(result);
        }