-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c0c6820
commit 4b99203
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System.Diagnostics; | ||
using UnityEngine; | ||
using UnityEditor; | ||
|
||
public class MenuEditor : ScriptableObject | ||
{ | ||
[MenuItem("Tools/打开Persister目录")] | ||
static void OpenPersister() | ||
{ | ||
Process.Start(Application.persistentDataPath); | ||
} | ||
|
||
[MenuItem("Tools/清除所有的PlayerPrefs")] | ||
static void ClearPrefs() | ||
{ | ||
PlayerPrefs.DeleteAll(); | ||
} | ||
|
||
[MenuItem("Tools/清除所有的EditorPrefs")] | ||
static void ClearEditorPrefs() | ||
{ | ||
EditorPrefs.DeleteAll(); | ||
} | ||
} |