Skip to content

Instantly share code, notes, and snippets.

@JT5D
Forked from unitycoder/ClearPrefs
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save JT5D/6d40f1376fc61728e86e to your computer and use it in GitHub Desktop.

Select an option

Save JT5D/6d40f1376fc61728e86e to your computer and use it in GitHub Desktop.
using UnityEngine;
using System.Collections;
using UnityEditor;
public class ClearPrefs : MonoBehaviour {
// otherwise adjusting player settings resolution wont do anything..
// http://answers.unity3d.com/questions/516517/why-doesnt-standalone-build-resolution-settings-af.html
[MenuItem("Edit/Reset Playerprefs")]
public static void DeletePlayerPrefs() { PlayerPrefs.DeleteAll(); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment