UnityEngine.PlayerPrefs.DeleteKey C# (CSharp) Method

DeleteKey() public static method

public static DeleteKey ( string key ) : void
key string
return void
		public static void DeleteKey(string key) { }
	}

Usage Example

コード例 #1
0
        private PropertyLayoutHelper.RenderFunc DrawButton(string key, SerializedProperty type)
        {
            if (key.IsNullOrEmpty() == true)
            {
                return(delegate { });
            }

            return(delegate(Rect rect) {
                if (UnityPrefs.HasKey(key) == true)
                {
                    if (GUI.Button(rect, "X") == true)
                    {
                        UnityPrefs.DeleteKey(key);
                    }
                }
                else
                {
                    if (GUI.Button(rect, "+") == true)
                    {
                        drawers[(Type)type.intValue].Add(key);
                    }
                }
            });
        }