Exemple #1
0
        public SmartHierarchy(EditorWindow window)
        {
            root        = window.rootVisualElement;
            this.window = new SceneHierarchyWindow(window);

            hoverPreview = new HoverPreview();

            Initialize();
            RegisterCallbacks();
            hierarchy.ReassignCallbacks();

            guiContainer = root.parent.Query <IMGUIContainer>().First();

            // onGUIHandler is called after hierarchy GUI, thus has a slight delay
            guiContainer.onGUIHandler += OnAfterGUI;

            root.Add(hoverPreview);
        }