Content-Length: 18261 | pFad | https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/PlayerPrefs.DeleteKey.html
Removes the given key from the PlayerPrefs. If the key does not exist, DeleteKey has no impact.
The following example shows a public function called ‘DeleteKey’. The function takes a string variable called ‘KeyName’ as a parameter, which PlayerPrefs.DeleteKey uses to delete the key from the registry.
using UnityEngine;
public class Example : MonoBehaviour { public void DeleteKey(string KeyName) { PlayerPrefs.DeleteKey(KeyName); } }
Fetched URL: https://docs.unity3d.com/ScriptReference/../Manual/../ScriptReference/PlayerPrefs.DeleteKey.html
Alternative Proxies: