【编辑器扩展】打开持久化路径/缓存路径/DataPath/StreamingAssetsPath文件夹
代码
[MenuItem("Assets/Open Explorer/PersistentDataPath")]
public static void OpenPersistentDataPath()
{
Application.OpenURL(Application.persistentDataPath);
}
[MenuItem("Assets/Open Explorer/DataPath")]
public static void OpenDataPath()
{
Application.OpenURL(Application.dataPath);
}
[MenuItem("Assets/Open Explorer/StreamingAssetsPath")]
public static void OpenStreamingAssetsPath()
{
Application.OpenURL(Application.streamingAssetsPath);
}
[MenuItem("Assets/Open Explorer/TemporaryCachePath")]
public static void OpenTemporaryCachePath()
{
Application.OpenURL(Application.temporaryCachePath);
}