diff --git a/Packages/com.unity.render-pipelines.core/Editor-PrivateShared/Editors.meta b/Packages/com.unity.render-pipelines.core/Editor-PrivateShared/Editors.meta deleted file mode 100644 index 297d7b6f34f..00000000000 --- a/Packages/com.unity.render-pipelines.core/Editor-PrivateShared/Editors.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: c6b7cefa8aef4df7a9901f140f4c27fd -timeCreated: 1769434100 \ No newline at end of file diff --git a/Packages/com.unity.render-pipelines.core/Editor-PrivateShared/Editors/HaloEditor.cs b/Packages/com.unity.render-pipelines.core/Editor-PrivateShared/Editors/HaloEditor.cs deleted file mode 100644 index 4178151cfbd..00000000000 --- a/Packages/com.unity.render-pipelines.core/Editor-PrivateShared/Editors/HaloEditor.cs +++ /dev/null @@ -1,31 +0,0 @@ -using UnityEditor.SceneManagement; -using UnityEngine; -using UnityEngine.Rendering; - -namespace UnityEditor -{ -#pragma warning disable CS0618 // Type or member is obsolete - [CustomEditor(typeof(Halo))] - [CanEditMultipleObjects] - class HaloEditor : Editor - { - public override void OnInspectorGUI() - { - if (GraphicsSettings.isScriptableRenderPipelineEnabled) - { - const int offsetToMatchWarning = 16; - Rect buttonRect = EditorGUILayout.GetControlRect(false, EditorGUIUtility.singleLineHeight); - buttonRect.x -= offsetToMatchWarning; - buttonRect.width += offsetToMatchWarning; - - if (GUI.Button(buttonRect, "Add Lens Flare (SRP) component") && serializedObject.targetObject is Halo halo) - { - halo.gameObject.AddComponent(); - EditorSceneManager.MarkSceneDirty(halo.gameObject.scene); - } - } - - DrawDefaultInspector(); - } - } -} diff --git a/Packages/com.unity.render-pipelines.core/Editor-PrivateShared/Editors/HaloEditor.cs.meta b/Packages/com.unity.render-pipelines.core/Editor-PrivateShared/Editors/HaloEditor.cs.meta deleted file mode 100644 index f0a27e4222a..00000000000 --- a/Packages/com.unity.render-pipelines.core/Editor-PrivateShared/Editors/HaloEditor.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 7a95ead01cb04bdeaea7c74de1f5cbc0 -timeCreated: 1769434012 \ No newline at end of file diff --git a/Packages/com.unity.render-pipelines.core/Editor-PrivateShared/Tools/Converter/Window/RenderPipelineConvertersEditor.cs b/Packages/com.unity.render-pipelines.core/Editor-PrivateShared/Tools/Converter/Window/RenderPipelineConvertersEditor.cs index d457e54e824..382aec1187a 100644 --- a/Packages/com.unity.render-pipelines.core/Editor-PrivateShared/Tools/Converter/Window/RenderPipelineConvertersEditor.cs +++ b/Packages/com.unity.render-pipelines.core/Editor-PrivateShared/Tools/Converter/Window/RenderPipelineConvertersEditor.cs @@ -82,7 +82,16 @@ public static void ShowWindow() [MenuItem("Window/Rendering/Render Pipeline Converter", true, 50)] public static bool CanShowWindow() { - return !EditorApplication.isPlaying; + if (EditorApplication.isPlaying) + return false; + + foreach (var converterType in TypeCache.GetTypesDerivedFrom()) + { + if (!converterType.IsAbstract && !converterType.IsInterface) + return true; + } + + return false; } internal static void DontSaveToLayout(EditorWindow wnd) diff --git a/Packages/com.unity.render-pipelines.core/Editor/Debugging/DebugWindow.SearchFilter.cs b/Packages/com.unity.render-pipelines.core/Editor/Debugging/DebugWindow.SearchFilter.cs new file mode 100644 index 00000000000..598e6490a18 --- /dev/null +++ b/Packages/com.unity.render-pipelines.core/Editor/Debugging/DebugWindow.SearchFilter.cs @@ -0,0 +1,148 @@ +#if ENABLE_UIELEMENTS_MODULE && (UNITY_EDITOR || DEVELOPMENT_BUILD) +#define ENABLE_RENDERING_DEBUGGER_UI +#endif + +using System; +using System.Collections.Generic; +using UnityEditor.UIElements; +using UnityEngine; +using UnityEngine.Rendering; +using UnityEngine.UIElements; + +namespace UnityEditor.Rendering +{ + internal class WidgetSearchData + { + public List textElements; + public string aggregatedAdditionalSearchText; + + public WidgetSearchData(List textElements, string aggregatedAdditionalSearchText) + { + this.textElements = textElements; + this.aggregatedAdditionalSearchText = aggregatedAdditionalSearchText; + } + } + + sealed partial class DebugWindow + { +#if ENABLE_RENDERING_DEBUGGER_UI + readonly Dictionary m_WidgetSearchElementCache = new(); + readonly List m_PanelHeaderTextElements = new(); + UIElementSearchFilter m_SearchFilter; + + void BuildSearchCache() + { + m_WidgetSearchElementCache.Clear(); + m_PanelHeaderTextElements.Clear(); + + foreach (var panelElement in m_RightPaneElement.Children()) + { + var headerLabel = panelElement.Q