예제 #1
0
        void OnLeavePanel(DetachFromPanelEvent e)
        {
            VisualElement rootVisualElement = UIElementsEntryPoint.GetRootVisualContainer(this);

            rootVisualElement.RemoveManipulator(m_ShortcutHandler);
        }
예제 #2
0
        void OnEnterPanel(AttachToPanelEvent e)
        {
            VisualElement rootVisualElement = UIElementsEntryPoint.GetRootVisualContainer(this);

            rootVisualElement.AddManipulator(m_ShortcutHandler);
        }