public override void AddItemsToMenu(GenericMenu menu)
 {
     m_LockTracker.AddItemsToMenu(menu);
     menu.AddItem(EditorGUIUtility.TrTextContent("Properties..."), false, () => OpenPropertyEditor(GetInspectedObjects()));
     menu.AddSeparator(String.Empty);
     base.AddItemsToMenu(menu);
 }
Пример #2
0
        public override void AddItemsToMenu(GenericMenu menu)
        {
            menu.AddItem(EditorGUIUtility.TrTextContent("Normal"), m_InspectorMode == InspectorMode.Normal, SetNormal);
            menu.AddItem(EditorGUIUtility.TrTextContent("Debug"), m_InspectorMode == InspectorMode.Debug, SetDebug);

            if (Unsupported.IsDeveloperMode())
            {
                menu.AddItem(EditorGUIUtility.TrTextContent("Debug-Internal"), m_InspectorMode == InspectorMode.DebugInternal, SetDebugInternal);
                menu.AddItem(EditorGUIUtility.TrTextContent("Use UI Toolkit Default Inspector"), useUIElementsDefaultInspector, SetUseUIEDefaultInspector);
            }

            m_LockTracker.AddItemsToMenu(menu);
            menu.AddSeparator(String.Empty);
            base.AddItemsToMenu(menu);
        }