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