|
|
|
|
|
|
[MenuItem("Window/Pyrception/Run")] |
|
|
|
static void RunPyrception() |
|
|
|
{ |
|
|
|
#if UNITY_EDITOR_WIN
|
|
|
|
#if UNITY_EDITOR_WIN || true
|
|
|
|
KillProcess(); |
|
|
|
//KillProcess();
|
|
|
|
#endif
|
|
|
|
string path = Path.GetFullPath(Application.dataPath.Replace("/Assets", "")); |
|
|
|
#if UNITY_EDITOR_WIN
|
|
|
|
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
#if UNITY_EDITOR_WIN
|
|
|
|
UnityEngine.Debug.Log("Launching visualization tool..."); |
|
|
|
#elif UNITY_EDITOR_OSX
|
|
|
|
#endif
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!waitForExit) |
|
|
|
{ |
|
|
|
#if UNITY_EDITOR_WIN
|
|
|
|
#elif UNITY_EDITOR_OSX
|
|
|
|
currentProcessId = cmd.Id; |
|
|
|
#endif
|
|
|
|
return output; |
|
|
|
} |
|
|
|
|
|
|
|