private void openVIDE_Editor(string idx) { if (d != null) { loadFiles(); } VIDE_Editor editor = EditorWindow.GetWindow <VIDE_Editor>(); editor.Init(idx, true); }
private void openVIDE_Editor(int idx) { if (!Directory.Exists(Application.dataPath + "/" + VIDE_Editor.pathToVide + "VIDE")) { Debug.LogError("Cannot find VIDE folder! If you moved the VIDE folder from the root, make sure you set the 'pathToVide' variable in VIDE_Editor.cs"); return; } VIDE_Editor editor = EditorWindow.GetWindow <VIDE_Editor>(); editor.Init(idx); }
static void ShowEditor() { if (!Directory.Exists(Application.dataPath + "/" + pathToVide + "VIDE")) { Debug.LogError("Cannot find VIDE folder at '" + Application.dataPath + "/" + pathToVide + "VIDE" + "'! If you moved the VIDE folder from the root, make sure you set the 'pathToVide' variable in VIDE_Editor.cs"); return; } VIDE_Editor editor = EditorWindow.GetWindow <VIDE_Editor>(); editor.Init(0); }