Persistent Directoryのパスを入力するのが面倒くさい。
EditorUtility.OpenFolderPanel ("開くときのメッセージ", "パス", "ファイル名");
というメソッドもあるが、これだとFinderではなくダイアログボックスみたいなのが出てしまう。
こういうときはこれ。
using UnityEngine; using UnityEditor; public class OpenFolderEditor : EditorBase { [MenuItem("MyEditor/Open Persistent Directory")] static void OpenPersistentDirectory () { string path = Application.persistentDataPath; System.Diagnostics.Process.Start(path); } }