Beispiel #1
0
        private static void     RemoveType()
        {
            if (DragObjectDrawer.initialDictionary == null)
            {
                DragObjectDrawer.InitializeInitialDictionaries();
            }

            Selection.selectionChanged -= DragObjectDrawer.OnSelectionChanged;
            DragObjectDrawer.s_DrawerTypeForType.SetValue(null, DragObjectDrawer.initialDictionary);
            DragObjectDrawer.UpdateInspector();
        }
Beispiel #2
0
        private static void     AddType()
        {
            if (DragObjectDrawer.overridenDictionary == null)
            {
                DragObjectDrawer.InitializeDragDictionaries();
            }

            Selection.selectionChanged += DragObjectDrawer.OnSelectionChanged;
            DragObjectDrawer.s_DrawerTypeForType.SetValue(null, DragObjectDrawer.overridenDictionary);
            DragObjectDrawer.UpdateInspector();
        }