public override void OnInspectorGUI() { GUI.color = new Color(1, 0.75f, 0.5f); if (GUILayout.Button("Open Editor", GUILayout.Height(40))) { DashEditorWindow.InitEditorWindow(null); DashEditorCore.EditGraph((DashGraph)target); } }
public static bool OpenDashGraphEditor(int p_instanceID, int p_line) { Object asset = EditorUtility.InstanceIDToObject(p_instanceID); if (asset.GetType() == typeof(DashGraph)) { string path = AssetDatabase.GetAssetPath(asset); DashEditorWindow.InitEditorWindow(null); DashEditorCore.EditGraph((DashGraph)AssetDatabase.LoadAssetAtPath <DashGraph>(path)); return(true); } return(false); }
private void OpenEditor() { DashEditorWindow.InitEditorWindow(Controller); }