public static bool OpenGraph(int instanceID, int line) { UnityEngine.Object targetObject = EditorUtility.InstanceIDToObject(instanceID); if (!typeof(BehaviourGraph).IsAssignableFrom(targetObject.GetType())) { return(false); } BehaviourWindow editor = EditorWindow.GetWindow <BehaviourWindow> (); editor.Show(); editor.OpenGraph((BehaviourGraph)targetObject); return(true); }
private static void ShowEditor() { BehaviourWindow editor = EditorWindow.GetWindow <BehaviourWindow> (); editor.Show(); }