Skip to content

Instantly share code, notes, and snippets.

@unitycoder
Created April 20, 2015 20:39
Show Gist options
  • Select an option

  • Save unitycoder/3373066f24c2958b17a5 to your computer and use it in GitHub Desktop.

Select an option

Save unitycoder/3373066f24c2958b17a5 to your computer and use it in GitHub Desktop.

Revisions

  1. unitycoder created this gist Apr 20, 2015.
    12 changes: 12 additions & 0 deletions ClearPrefs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    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(); }
    }