CTT/Unity/Assets/Editor/Assistent/Misc/OpenReleaseFolder.cs

23 lines
584 B
C#
Raw Normal View History

2021-04-08 20:09:59 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using System.IO;
namespace ETEditor
{
public class OpenReleaseFolder
{
[MenuItem("助手/打开Release #r", priority = 4)]
private static void Open()
{
Application.OpenURL($"file://{Path.Combine(Application.dataPath, "../../Release")}");
}
[MenuItem("助手/打开PersistentDataPath #p", priority = 5)]
private static void OpenPersistentDataPath()
{
Application.OpenURL($"file://{Application.persistentDataPath}");
}
}
}