This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using System.Diagnostics; | |
public class RevealPersistentDataDirectory : MonoBehaviour { | |
[MenuItem("Assets/Reveal Persistent Data Directory")] | |
static void DoMenu() { | |
Process process = new Process(); | |
process.StartInfo.FileName = ( (Application.platform == RuntimePlatform.WindowsEditor) ? "explorer.exe" : "open" ); | |
process.StartInfo.Arguments = "file://"+Application.persistentDataPath; |
NewerOlder