File tree Expand file tree Collapse file tree
Packages/com.unity.render-pipelines.core/Editor/Debugging Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,11 +29,13 @@ sealed partial class DebugWindow
2929 readonly Dictionary < DebugUI . Widget , WidgetSearchData > m_WidgetSearchElementCache = new ( ) ;
3030 readonly List < TextElement > m_PanelHeaderTextElements = new ( ) ;
3131 UIElementSearchFilter m_SearchFilter ;
32+ Label m_NoResultsLabel ;
3233
3334 void BuildSearchCache ( )
3435 {
3536 m_WidgetSearchElementCache . Clear ( ) ;
3637 m_PanelHeaderTextElements . Clear ( ) ;
38+ m_NoResultsLabel = rootVisualElement . Q < Label > ( name : "debug-window-no-results-label" ) ;
3739
3840 foreach ( var panelElement in m_RightPaneElement . Children ( ) )
3941 {
@@ -76,6 +78,9 @@ void InitializeSearchField()
7678 tab . style . display = shouldShow ? DisplayStyle . Flex : DisplayStyle . None ;
7779 }
7880 }
81+
82+ bool noResults = ! string . IsNullOrEmpty ( searchString ) && visiblePanels . Count == 0 ;
83+ m_NoResultsLabel . style . display = noResults ? DisplayStyle . Flex : DisplayStyle . None ;
7984 }
8085 ) ;
8186 m_SearchFilter . InitializeSearchField ( "search-field" ) ;
Original file line number Diff line number Diff line change 108108.info-button:hover {
109109 background-color: var(--unity-colors-button-background-hover);
110110}
111+
112+ #debug-window-no-results-label {
113+ display: none;
114+ -unity-text-align: middle-center;
115+ }
Original file line number Diff line number Diff line change 1515 <ui:VisualElement name="debug-window-tab-container" class="">
1616 <ui:ScrollView horizontal-scroller-visibility="Hidden" view-data-key="debug-window-tab-container-scrollview">
1717 <ui:VisualElement name="panels-inspector-insertion-element" />
18+ <ui:Label name="debug-window-no-results-label" text="No results match your search." />
1819 <ui:VisualElement name="scroll-buffer" />
1920 </ui:ScrollView>
2021 </ui:VisualElement>
You can’t perform that action at this time.
0 commit comments