Skip to content

Instantly share code, notes, and snippets.

View Grave18's full-sized avatar

Grave Grave18

  • Kyrgystan
  • 15:39 (UTC +05:00)
View GitHub Profile
@attilam
attilam / RevealPersistentDataDirectory.cs
Created December 6, 2012 17:20
Reveal Persistent Data Directory for current project in Unity
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;