private static bool LoadBossEditorIfBossCreatorObjectSelected(int instanceID, int line) { Object obj = EditorUtility.InstanceIDToObject(instanceID); if (EditorUtility.InstanceIDToObject(instanceID).GetType() == typeof(BossCreator)) { BossEditor editor = EditorWindow.GetWindow <BossEditor>(desiredDockNextTo: typeof(SceneView)); editor.BossCreatorObject = (BossCreator)obj; editor.LoadBoss(); foreach (var node in editor.BossCreatorObject.Nodes) { Debug.Log(node.WindowTitle); } } return(false); }