static void ShowEditor()
        {
            EventsGraphWindow editor = EditorWindow.GetWindow <EventsGraphWindow>();

            editor.hideFlags = HideFlags.HideAndDontSave;
            editor.Initialize();
        }
Exemple #2
0
        static void FindEvents()
        {
            EventsGraphWindow window = EditorWindow.GetWindow <EventsGraphWindow>();

            if (window != null)
            {
                window.OverrideSelection(Selection.activeInstanceID);
            }
        }
        static void GraphSelectionHierarchy()
        {
            EventsGraphWindow window = EditorWindow.GetWindow <EventsGraphWindow>();

            window.RebuildGraph(new GameObject[] { Selection.activeGameObject }, true);
        }