Exemplo n.º 1
0
        protected static Color DrawColorField(string label, string key, Color value)
        {
            value = PlayerPrefsEx.GetColor(key, value);
            Color newValue = EditorGUILayout.ColorField(label, value);

            if (newValue != value)
            {
                PlayerPrefsEx.SetColor(key, newValue);
            }
            return(newValue);
        }