Beispiel #1
0
        static void ShowEditor()
        {
            SmartGraphWindow editor = EditorWindow.GetWindow <SmartGraphWindow>();

            editor.hideFlags = HideFlags.HideAndDontSave;
            editor.Initialize();
        }
        static void FindEvents()
        {
            SmartGraphWindow window = EditorWindow.GetWindow <SmartGraphWindow>();

            if (window != null)
            {
                window.OverrideSelection(Selection.activeInstanceID);
            }
        }