using UnityEditor;
using UnityEngine;
public class ResetExternalTool : MonoBehaviour
{
[MenuItem ("Edit/Reset Preferences")]
static void ResetPrefs()
{
if(EditorUtility.DisplayDialog("Reset editor preferences?", "Reset all editor preferences? This cannot be undone.", "Yes", "No"))
{
EditorPrefs.DeleteAll();
}
}
}
댓글 없음:
댓글 쓰기