コード例 #1
0
        static void ShowEditor()
        {
            EventsGraphWindow editor = EditorWindow.GetWindow <EventsGraphWindow>();

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

            if (window != null)
            {
                window.OverrideSelection(Selection.activeInstanceID);
            }
        }
コード例 #3
0
        static void GraphSelectionHierarchy()
        {
            EventsGraphWindow window = EditorWindow.GetWindow <EventsGraphWindow>();

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