示例#1
0
        public override void RunEntry(string id)
        {
            switch (id)
            {
            case "0":
                Utility.Reveal(Application.persistentDataPath);
                break;

            case "1":
                Utility.Reveal(Application.dataPath);
                break;

            case "2":
                Utility.Reveal(Application.streamingAssetsPath);
                break;

            case "3":
                Utility.Reveal(Application.temporaryCachePath);
                break;

            case "4":
#if UNITY_EDITOR_OSX
                string path = GetAssetStorePackagesPathOnMac();
#elif UNITY_EDITOR_WIN
                string path = GetAssetStorePackagesPathOnWindows();
#endif
                Utility.Reveal(path);
                break;

            case "5":
                Utility.Reveal(GetEditorApplicationInstallFolder());
                break;

            case "6":
                OpenEditorLogFolderPath();
                break;

            case "7":
                Utility.Reveal(PathManager.GetUnityPackagesFolder());
                break;

            case "8":
                Utility.Reveal(GetScriptsTemplateFolder());
                break;

            default:
                break;
            }
        }
 private void GetPackagesFolderPath(string message, object callback)
 {
     wrap = new CallbackWrapper(callback);
     wrap.Send(PathManager.GetUnityPackagesFolder());
 }