/// <summary>
/// PersistentDataPathをOSごとに判定して開く
/// </summary>
[MenuItem("Assets/Open PersistentPath")]
public static void OpenPersistentPath()
{
if (Application.platform == RuntimePlatform.OSXEditor)
{
System.Diagnostics.Process.Start(Application.persistentDataPath);
}
else if (Application.platform == RuntimePlatform.WindowsEditor)
{
EditorUtility.RevealInFinder(Application.persistentDataPath);
}
}
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
107