Search Issue Tracker
Fixed
Fixed in 2023.2.13f1, 2023.3.0b10
Votes
0
Found in
2023.2.9f1
2023.3.0b6
Issue ID
UUM-62701
Regression
No
Presets: "Add new query block" component is provided without any benefit
*Steps to reproduce:*
# Create a project
# Add 2D/3D game object
# Go to the "Inspector" tab
# Select any component
# Click preset icon
# Verify, that the "Select Preset" window opens
# Verify, that "Add new query block" is displayed in the search field
# Open it and observe its choices
*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:*
* The "Add new query block" usage causes other issues. Console displays errors if user uses search. A screenshot is added below.
* Error:
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)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
Resolution Note (fix version 2023.2.13f1):
Editor: Preset Selector shows in text mode since there is no search propositions available