Not signed in
Copyright © 2026 Unity Technologies
Steps to reproduce:
Actual results:
It displays only one item "Presets (preset)". So why the block is needed if it displays only one item?
Expected results: "Add new query block" should be removed. As it doesn't provide any value.
Reproducible with versions: 2023.2.0a2, 2023.2.9f1, 2023.3.0b6
Not reproducible with versions: 2022.3.19f1
Can’t test with version(s): 2021.3.34f1 and 2022.3.19f1 as these streams present an old preset window.
Tested on (OS): macOS, Sonoma 14.2.1
Notes:
NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Search.QuerySelectorItemGUI.DrawItemContent (UnityEditor.IMGUI.Controls.AdvancedDropdownItem item, UnityEngine.Rect rect, UnityEngine.GUIContent content, System.Boolean isHover, System.Boolean isActive, System.Boolean on, System.Boolean hasKeyboardFocus) (at /Users/bokken/build/output/unity/unity/Modules/QuickSearch/Editor/QueryBuilder/QuerySelector.cs:109)
UnityEditor.IMGUI.Controls.AdvancedDropdownGUI.DrawItem (UnityEditor.IMGUI.Controls.AdvancedDropdownItem item, System.String name, UnityEngine.Texture2D icon, System.Boolean enabled, System.Boolean drawArrow, System.Boolean selected, System.Boolean hasSearch) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/Core/AdvancedDropdown/AdvancedDropdownGUI.cs:90)
UnityEditor.IMGUI.Controls.AdvancedDropdownWindow.DrawList (UnityEditor.IMGUI.Controls.AdvancedDropdownItem item) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/Core/AdvancedDropdown/AdvancedDropdownWindow.cs:418)
UnityEditor.IMGUI.Controls.AdvancedDropdownWindow.DrawDropdown (System.Single anim, UnityEditor.IMGUI.Controls.AdvancedDropdownItem group) (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/Core/AdvancedDropdown/AdvancedDropdownWindow.cs:397)
UnityEditor.IMGUI.Controls.AdvancedDropdownWindow.OnGUI () (at /Users/bokken/build/output/unity/unity/Editor/Mono/Inspector/Core/AdvancedDropdown/AdvancedDropdownWindow.cs:248)
UnityEditor.HostView.OldOnGUI () (at /Users/bokken/build/output/unity/unity/Editor/Mono/HostView.cs:315)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/IMGUIContainer.cs:422)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/IMGUIContainer.cs:711)
UnityEngine.UIElements.IMGUIContainer.DoIMGUIRepaint () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/IMGUIContainer.cs:576)
UnityEngine.UIElements.UIR.RenderChainCommand.ExecuteNonDrawMesh (UnityEngine.UIElements.UIR.DrawParams drawParams, System.Single pixelsPerPoint, System.Exception& immediateException) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Renderer/UIRenderer/UIRenderers.cs:134)
Rethrow as ImmediateModeException
UnityEngine.UIElements.UIR.RenderChain.Render () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Renderer/UIRRenderChain.cs:535)
UnityEngine.UIElements.UIRRepaintUpdater.Render () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Renderer/UIRRepaintUpdater.cs:81)
UnityEngine.UIElements.BaseVisualElementPanel.Render () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Panel.cs:777)
UnityEngine.UIElements.Panel.Render () (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/Panel.cs:1313)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:477)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:225)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:74)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at /Users/bokken/build/output/unity/unity/Modules/UIElements/Core/UIElementsUtility.cs:28)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:206)
Sign in to see your voted issues