Created
December 6, 2012 17:20
-
-
Save attilam/4226250 to your computer and use it in GitHub Desktop.
Reveal Persistent Data Directory for current project in Unity
This file contains 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; | |
process.Start(); | |
} | |
} |
Grave18
commented
Feb 27, 2024
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment