diff --git a/com.unity.render-pipelines.core/CHANGELOG.md b/com.unity.render-pipelines.core/CHANGELOG.md index d59228468e2..d5a0cc82aa0 100644 --- a/com.unity.render-pipelines.core/CHANGELOG.md +++ b/com.unity.render-pipelines.core/CHANGELOG.md @@ -10,6 +10,7 @@ Version Updated The version number for this package has increased due to a version update of a related graphics package. ### Added +- Debug Panels Framework See `IDebugDisplaySettingsQuery`. - New `IVolumeDebugSettings` interface and `VolumeDebugSettings` class that stores the information for the Volumes Debug Panel. - Added AMD FidelityFX shaders which were originally in HDRP diff --git a/com.unity.render-pipelines.core/Runtime/Debugging/DebugDisplaySettings.cs b/com.unity.render-pipelines.core/Runtime/Debugging/DebugDisplaySettings.cs new file mode 100644 index 00000000000..481a2cafaad --- /dev/null +++ b/com.unity.render-pipelines.core/Runtime/Debugging/DebugDisplaySettings.cs @@ -0,0 +1,108 @@ +using System; +using System.Collections.Generic; + +namespace UnityEngine.Rendering +{ + /// + /// Templated class for + /// + /// + public abstract class DebugDisplaySettings : IDebugDisplaySettings + where T : IDebugDisplaySettings, new() + { + protected readonly HashSet m_Settings = new HashSet(); + + private static readonly Lazy s_Instance = new Lazy(() => + { + var instance = new T(); + instance.Reset(); + return instance; + }); + + /// + /// The singleton instance that contains the current settings of Rendering Debugger. + /// + public static T Instance => s_Instance.Value; + + #region IDebugDisplaySettingsQuery + + /// + /// Returns true if any of the debug settings are currently active. + /// + public virtual bool AreAnySettingsActive + { + get + { + foreach (IDebugDisplaySettingsData setting in m_Settings) + { + if (setting.AreAnySettingsActive) + return true; + } + + return false; + } + } + + /// + /// Checks whether the current state of these settings allows post-processing. + /// + public virtual bool IsPostProcessingAllowed { get; } + + /// + /// Returns true if lighting is active for current state of debug settings. + /// + public virtual bool IsLightingActive + { + get + { + bool lightingActive = true; + foreach (IDebugDisplaySettingsData setting in m_Settings) + lightingActive &= setting.IsLightingActive; + return lightingActive; + } + } + #endregion + + protected TData Add(TData newData) where TData : IDebugDisplaySettingsData + { + m_Settings.Add(newData); + return newData; + } + + /// + /// Executes an action for each element + /// + /// + public void ForEach(Action onExecute) + { + foreach (IDebugDisplaySettingsData setting in m_Settings) + { + onExecute(setting); + } + } + + /// + /// Reset the stored debug settings + /// + public virtual void Reset() + { + m_Settings.Clear(); + } + + /// + /// Attempts to get the color that should be used to clear the screen according to current debug settings. + /// + /// A reference to the screen clear color to use. + /// True if the color reference was updated, and false otherwise. + public virtual bool TryGetScreenClearColor(ref Color color) + { + foreach (IDebugDisplaySettingsData setting in m_Settings) + { + if (setting.TryGetScreenClearColor(ref color)) + return true; + } + + return false; + } + } +} diff --git a/com.unity.render-pipelines.universal/Runtime/Debug/DebugDisplaySettings.cs.meta b/com.unity.render-pipelines.core/Runtime/Debugging/DebugDisplaySettings.cs.meta similarity index 83% rename from com.unity.render-pipelines.universal/Runtime/Debug/DebugDisplaySettings.cs.meta rename to com.unity.render-pipelines.core/Runtime/Debugging/DebugDisplaySettings.cs.meta index 0bf9f98515a..be5f113b8af 100644 --- a/com.unity.render-pipelines.universal/Runtime/Debug/DebugDisplaySettings.cs.meta +++ b/com.unity.render-pipelines.core/Runtime/Debugging/DebugDisplaySettings.cs.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 9f6344f2dc8b9435db33604d430c83d3 +guid: c4e8d2f4fab62224f8d693e15696410e MonoImporter: externalObjects: {} serializedVersion: 2 diff --git a/com.unity.render-pipelines.universal/Runtime/Debug/DebugDisplaySettingsPanel.cs b/com.unity.render-pipelines.core/Runtime/Debugging/DebugDisplaySettingsPanel.cs similarity index 83% rename from com.unity.render-pipelines.universal/Runtime/Debug/DebugDisplaySettingsPanel.cs rename to com.unity.render-pipelines.core/Runtime/Debugging/DebugDisplaySettingsPanel.cs index e013f182128..714632efb76 100644 --- a/com.unity.render-pipelines.universal/Runtime/Debug/DebugDisplaySettingsPanel.cs +++ b/com.unity.render-pipelines.core/Runtime/Debugging/DebugDisplaySettingsPanel.cs @@ -1,6 +1,6 @@ using System.Collections.Generic; -namespace UnityEngine.Rendering.Universal +namespace UnityEngine.Rendering { public abstract class DebugDisplaySettingsPanel : IDebugDisplaySettingsPanelDisposable { @@ -14,9 +14,14 @@ protected void AddWidget(DebugUI.Widget widget) m_Widgets.Add(widget); } - public void Dispose() + protected void Clear() { m_Widgets.Clear(); } + + public void Dispose() + { + Clear(); + } } } diff --git a/com.unity.render-pipelines.universal/Runtime/Debug/DebugDisplaySettingsPanel.cs.meta b/com.unity.render-pipelines.core/Runtime/Debugging/DebugDisplaySettingsPanel.cs.meta similarity index 100% rename from com.unity.render-pipelines.universal/Runtime/Debug/DebugDisplaySettingsPanel.cs.meta rename to com.unity.render-pipelines.core/Runtime/Debugging/DebugDisplaySettingsPanel.cs.meta diff --git a/com.unity.render-pipelines.universal/Runtime/Debug/DebugDisplaySettingsUI.cs b/com.unity.render-pipelines.core/Runtime/Debugging/DebugDisplaySettingsUI.cs similarity index 94% rename from com.unity.render-pipelines.universal/Runtime/Debug/DebugDisplaySettingsUI.cs rename to com.unity.render-pipelines.core/Runtime/Debugging/DebugDisplaySettingsUI.cs index 30680c9e79e..6eba122fd48 100644 --- a/com.unity.render-pipelines.universal/Runtime/Debug/DebugDisplaySettingsUI.cs +++ b/com.unity.render-pipelines.core/Runtime/Debugging/DebugDisplaySettingsUI.cs @@ -1,12 +1,12 @@ using System; using System.Collections.Generic; -namespace UnityEngine.Rendering.Universal +namespace UnityEngine.Rendering { public class DebugDisplaySettingsUI : IDebugData { private IEnumerable m_DisposablePanels; - private DebugDisplaySettings m_Settings; + private IDebugDisplaySettings m_Settings; private void Reset() { @@ -21,7 +21,7 @@ private void Reset() } } - public void RegisterDebug(DebugDisplaySettings settings) + public void RegisterDebug(IDebugDisplaySettings settings) { DebugManager debugManager = DebugManager.instance; List panels = new List(); diff --git a/com.unity.render-pipelines.universal/Runtime/Debug/DebugDisplaySettingsUI.cs.meta b/com.unity.render-pipelines.core/Runtime/Debugging/DebugDisplaySettingsUI.cs.meta similarity index 100% rename from com.unity.render-pipelines.universal/Runtime/Debug/DebugDisplaySettingsUI.cs.meta rename to com.unity.render-pipelines.core/Runtime/Debugging/DebugDisplaySettingsUI.cs.meta diff --git a/com.unity.render-pipelines.core/Runtime/Debugging/IDebugDisplaySettings.cs b/com.unity.render-pipelines.core/Runtime/Debugging/IDebugDisplaySettings.cs new file mode 100644 index 00000000000..a0b5de42c49 --- /dev/null +++ b/com.unity.render-pipelines.core/Runtime/Debugging/IDebugDisplaySettings.cs @@ -0,0 +1,22 @@ +using System; +using UnityEngine; + +namespace UnityEngine.Rendering +{ + /// + /// Interface for storing the debug settings + /// + public interface IDebugDisplaySettings : IDebugDisplaySettingsQuery + { + /// + /// Reset the stored debug settings + /// + void Reset(); + + /// + /// Executes an action for each element + /// + /// + void ForEach(Action onExecute); + } +} diff --git a/com.unity.render-pipelines.core/Runtime/Debugging/IDebugDisplaySettings.cs.meta b/com.unity.render-pipelines.core/Runtime/Debugging/IDebugDisplaySettings.cs.meta new file mode 100644 index 00000000000..be6fc6135e6 --- /dev/null +++ b/com.unity.render-pipelines.core/Runtime/Debugging/IDebugDisplaySettings.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3be1aff9418ca6840a765320b0c2a2db +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/com.unity.render-pipelines.universal/Runtime/Debug/IDebugDisplaySettingsData.cs b/com.unity.render-pipelines.core/Runtime/Debugging/IDebugDisplaySettingsData.cs similarity index 76% rename from com.unity.render-pipelines.universal/Runtime/Debug/IDebugDisplaySettingsData.cs rename to com.unity.render-pipelines.core/Runtime/Debugging/IDebugDisplaySettingsData.cs index 241bdb1917c..daac1022757 100644 --- a/com.unity.render-pipelines.universal/Runtime/Debug/IDebugDisplaySettingsData.cs +++ b/com.unity.render-pipelines.core/Runtime/Debugging/IDebugDisplaySettingsData.cs @@ -1,5 +1,8 @@ -namespace UnityEngine.Rendering.Universal +namespace UnityEngine.Rendering { + /// + /// Debug UI panel interface + /// public interface IDebugDisplaySettingsData : IDebugDisplaySettingsQuery { /// diff --git a/com.unity.render-pipelines.universal/Runtime/Debug/IDebugDisplaySettingsData.cs.meta b/com.unity.render-pipelines.core/Runtime/Debugging/IDebugDisplaySettingsData.cs.meta similarity index 100% rename from com.unity.render-pipelines.universal/Runtime/Debug/IDebugDisplaySettingsData.cs.meta rename to com.unity.render-pipelines.core/Runtime/Debugging/IDebugDisplaySettingsData.cs.meta diff --git a/com.unity.render-pipelines.universal/Runtime/Debug/IDebugDisplaySettingsPanel.cs b/com.unity.render-pipelines.core/Runtime/Debugging/IDebugDisplaySettingsPanel.cs similarity index 73% rename from com.unity.render-pipelines.universal/Runtime/Debug/IDebugDisplaySettingsPanel.cs rename to com.unity.render-pipelines.core/Runtime/Debugging/IDebugDisplaySettingsPanel.cs index 770b66fa26c..a80f0b88b45 100644 --- a/com.unity.render-pipelines.universal/Runtime/Debug/IDebugDisplaySettingsPanel.cs +++ b/com.unity.render-pipelines.core/Runtime/Debugging/IDebugDisplaySettingsPanel.cs @@ -1,7 +1,10 @@ using System; -namespace UnityEngine.Rendering.Universal +namespace UnityEngine.Rendering { + /// + /// Debug UI panel + /// public interface IDebugDisplaySettingsPanel { /// @@ -15,6 +18,9 @@ public interface IDebugDisplaySettingsPanel DebugUI.Widget[] Widgets { get; } } + /// + /// Debug UI panel disposable + /// public interface IDebugDisplaySettingsPanelDisposable : IDebugDisplaySettingsPanel, IDisposable { } diff --git a/com.unity.render-pipelines.universal/Runtime/Debug/IDebugDisplaySettingsPanel.cs.meta b/com.unity.render-pipelines.core/Runtime/Debugging/IDebugDisplaySettingsPanel.cs.meta similarity index 100% rename from com.unity.render-pipelines.universal/Runtime/Debug/IDebugDisplaySettingsPanel.cs.meta rename to com.unity.render-pipelines.core/Runtime/Debugging/IDebugDisplaySettingsPanel.cs.meta diff --git a/com.unity.render-pipelines.universal/Runtime/Debug/IDebugDisplaySettingsQuery.cs b/com.unity.render-pipelines.core/Runtime/Debugging/IDebugDisplaySettingsQuery.cs similarity index 96% rename from com.unity.render-pipelines.universal/Runtime/Debug/IDebugDisplaySettingsQuery.cs rename to com.unity.render-pipelines.core/Runtime/Debugging/IDebugDisplaySettingsQuery.cs index 495ea114101..186c0c5be62 100644 --- a/com.unity.render-pipelines.universal/Runtime/Debug/IDebugDisplaySettingsQuery.cs +++ b/com.unity.render-pipelines.core/Runtime/Debugging/IDebugDisplaySettingsQuery.cs @@ -1,6 +1,6 @@ using UnityEngine; -namespace UnityEngine.Rendering.Universal +namespace UnityEngine.Rendering { /// /// Interface for determining what kind of debug settings are currently active. diff --git a/com.unity.render-pipelines.universal/Runtime/Debug/IDebugDisplaySettingsQuery.cs.meta b/com.unity.render-pipelines.core/Runtime/Debugging/IDebugDisplaySettingsQuery.cs.meta similarity index 100% rename from com.unity.render-pipelines.universal/Runtime/Debug/IDebugDisplaySettingsQuery.cs.meta rename to com.unity.render-pipelines.core/Runtime/Debugging/IDebugDisplaySettingsQuery.cs.meta diff --git a/com.unity.render-pipelines.universal/Runtime/Debug/DebugDisplaySettingsCommon.cs b/com.unity.render-pipelines.universal/Runtime/Debug/DebugDisplaySettingsCommon.cs index 8a03d0c5a2f..74934bf51e8 100644 --- a/com.unity.render-pipelines.universal/Runtime/Debug/DebugDisplaySettingsCommon.cs +++ b/com.unity.render-pipelines.universal/Runtime/Debug/DebugDisplaySettingsCommon.cs @@ -1,5 +1,4 @@ using System.Collections.Generic; -using UnityEngine; namespace UnityEngine.Rendering.Universal { @@ -32,9 +31,10 @@ private class SettingsPanel : DebugDisplaySettingsPanel public SettingsPanel() { - AddWidget(DebugDisplaySettingsCommon.WidgetFactory.CreateMissingDebugShadersWarning()); + AddWidget(WidgetFactory.CreateMissingDebugShadersWarning()); - var materialSettingsData = DebugDisplaySettings.Instance.MaterialSettings; + var debugDisplaySettings = UniversalRenderPipelineDebugDisplaySettings.Instance; + var materialSettingsData = debugDisplaySettings.MaterialSettings; AddWidget(new DebugUI.Foldout { displayName = "Material Filters", @@ -54,7 +54,7 @@ public SettingsPanel() } }); - var lightingSettingsData = DebugDisplaySettings.Instance.LightingSettings; + var lightingSettingsData = debugDisplaySettings.LightingSettings; AddWidget(new DebugUI.Foldout { displayName = "Lighting Debug Modes", @@ -75,7 +75,7 @@ public SettingsPanel() } }); - var renderingSettingsData = DebugDisplaySettings.Instance.RenderingSettings; + var renderingSettingsData = debugDisplaySettings.RenderingSettings; AddWidget(new DebugUI.Foldout { displayName = "Rendering Debug", @@ -103,11 +103,11 @@ public SettingsPanel() } #region IDebugDisplaySettingsData - - public bool AreAnySettingsActive => DebugDisplaySettings.Instance.AreAnySettingsActive; - public bool IsPostProcessingAllowed => DebugDisplaySettings.Instance.IsPostProcessingAllowed; - public bool IsLightingActive => DebugDisplaySettings.Instance.IsLightingActive; - public bool TryGetScreenClearColor(ref Color color) => DebugDisplaySettings.Instance.TryGetScreenClearColor(ref color); + UniversalRenderPipelineDebugDisplaySettings debugDisplaySettings => UniversalRenderPipelineDebugDisplaySettings.Instance; + public bool AreAnySettingsActive => debugDisplaySettings.AreAnySettingsActive; + public bool IsPostProcessingAllowed => debugDisplaySettings.IsPostProcessingAllowed; + public bool IsLightingActive => debugDisplaySettings.IsLightingActive; + public bool TryGetScreenClearColor(ref Color color) => debugDisplaySettings.TryGetScreenClearColor(ref color); public IDebugDisplaySettingsPanelDisposable CreatePanel() { diff --git a/com.unity.render-pipelines.universal/Runtime/Debug/DebugHandler.cs b/com.unity.render-pipelines.universal/Runtime/Debug/DebugHandler.cs index 572c5ca4100..6f12571e5f7 100644 --- a/com.unity.render-pipelines.universal/Runtime/Debug/DebugHandler.cs +++ b/com.unity.render-pipelines.universal/Runtime/Debug/DebugHandler.cs @@ -55,7 +55,7 @@ class DebugHandler : IDebugDisplaySettingsQuery Vector4 m_DebugRenderTargetPixelRect; RenderTargetIdentifier m_DebugRenderTargetIdentifier; - readonly DebugDisplaySettings m_DebugDisplaySettings; + readonly UniversalRenderPipelineDebugDisplaySettings m_DebugDisplaySettings; DebugDisplaySettingsLighting LightingSettings => m_DebugDisplaySettings.LightingSettings; DebugDisplaySettingsMaterial MaterialSettings => m_DebugDisplaySettings.MaterialSettings; @@ -84,7 +84,7 @@ public bool TryGetScreenClearColor(ref Color color) #endregion internal Material ReplacementMaterial => m_ReplacementMaterial; - internal DebugDisplaySettings DebugDisplaySettings => m_DebugDisplaySettings; + internal UniversalRenderPipelineDebugDisplaySettings DebugDisplaySettings => m_DebugDisplaySettings; internal bool IsScreenClearNeeded { @@ -108,7 +108,7 @@ internal DebugHandler(ScriptableRendererData scriptableRendererData) { Shader debugReplacementShader = scriptableRendererData.debugShaders.debugReplacementPS; - m_DebugDisplaySettings = DebugDisplaySettings.Instance; + m_DebugDisplaySettings = UniversalRenderPipelineDebugDisplaySettings.Instance; m_ReplacementMaterial = (debugReplacementShader == null) ? null : CoreUtils.CreateEngineMaterial(debugReplacementShader); } diff --git a/com.unity.render-pipelines.universal/Runtime/Debug/DebugDisplaySettings.cs b/com.unity.render-pipelines.universal/Runtime/Debug/UniversalRenderPipelineDebugDisplaySettings.cs similarity index 69% rename from com.unity.render-pipelines.universal/Runtime/Debug/DebugDisplaySettings.cs rename to com.unity.render-pipelines.universal/Runtime/Debug/UniversalRenderPipelineDebugDisplaySettings.cs index 601a7d7f318..d4e7c0eeed2 100644 --- a/com.unity.render-pipelines.universal/Runtime/Debug/DebugDisplaySettings.cs +++ b/com.unity.render-pipelines.universal/Runtime/Debug/UniversalRenderPipelineDebugDisplaySettings.cs @@ -1,20 +1,9 @@ using System; -using System.Collections.Generic; -using UnityEngine; namespace UnityEngine.Rendering.Universal { - public class DebugDisplaySettings : IDebugDisplaySettingsQuery + public class UniversalRenderPipelineDebugDisplaySettings : DebugDisplaySettings { - private readonly HashSet m_Settings = new HashSet(); - - private static readonly Lazy s_Instance = new Lazy(() => new DebugDisplaySettings()); - - /// - /// The singleton instance that contains the current settings of URP Rendering Debugger. - /// - public static DebugDisplaySettings Instance => s_Instance.Value; - DebugDisplaySettingsCommon CommonSettings { get; set; } /// @@ -37,11 +26,11 @@ public class DebugDisplaySettings : IDebugDisplaySettingsQuery /// /// Returns true if any of the debug settings are currently active. /// - public bool AreAnySettingsActive => MaterialSettings.AreAnySettingsActive || + public override bool AreAnySettingsActive => MaterialSettings.AreAnySettingsActive || LightingSettings.AreAnySettingsActive || RenderingSettings.AreAnySettingsActive; - public bool TryGetScreenClearColor(ref Color color) + public override bool TryGetScreenClearColor(ref Color color) { return MaterialSettings.TryGetScreenClearColor(ref color) || RenderingSettings.TryGetScreenClearColor(ref color) || @@ -51,14 +40,14 @@ public bool TryGetScreenClearColor(ref Color color) /// /// Returns true if lighting is active for current state of debug settings. /// - public bool IsLightingActive => MaterialSettings.IsLightingActive && + public override bool IsLightingActive => MaterialSettings.IsLightingActive && RenderingSettings.IsLightingActive && LightingSettings.IsLightingActive; /// /// Returns true if the current state of debug settings allows post-processing. /// - public bool IsPostProcessingAllowed + public override bool IsPostProcessingAllowed { get { @@ -93,18 +82,11 @@ public bool IsPostProcessingAllowed } #endregion - private TData Add(TData newData) where TData : IDebugDisplaySettingsData + public UniversalRenderPipelineDebugDisplaySettings() { - m_Settings.Add(newData); - return newData; } - DebugDisplaySettings() - { - Reset(); - } - - internal void Reset() + public override void Reset() { m_Settings.Clear(); @@ -113,13 +95,5 @@ internal void Reset() LightingSettings = Add(new DebugDisplaySettingsLighting()); RenderingSettings = Add(new DebugDisplaySettingsRendering()); } - - internal void ForEach(Action onExecute) - { - foreach (IDebugDisplaySettingsData setting in m_Settings) - { - onExecute(setting); - } - } } } diff --git a/com.unity.render-pipelines.universal/Runtime/Debug/UniversalRenderPipelineDebugDisplaySettings.cs.meta b/com.unity.render-pipelines.universal/Runtime/Debug/UniversalRenderPipelineDebugDisplaySettings.cs.meta new file mode 100644 index 00000000000..53e892e5c72 --- /dev/null +++ b/com.unity.render-pipelines.universal/Runtime/Debug/UniversalRenderPipelineDebugDisplaySettings.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2792d18b8e6d4d141af28c77268cced7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/com.unity.render-pipelines.universal/Runtime/ScriptableRenderer.cs b/com.unity.render-pipelines.universal/Runtime/ScriptableRenderer.cs index a6ed15da98b..60424edf839 100644 --- a/com.unity.render-pipelines.universal/Runtime/ScriptableRenderer.cs +++ b/com.unity.render-pipelines.universal/Runtime/ScriptableRenderer.cs @@ -608,7 +608,7 @@ public virtual void FinishRendering(CommandBuffer cmd) public void Execute(ScriptableRenderContext context, ref RenderingData renderingData) { // Disable Gizmos when using scene overrides. Gizmos break some effects like Overdraw debug. - bool drawGizmos = DebugDisplaySettings.Instance.RenderingSettings.debugSceneOverrideMode == DebugSceneOverrideMode.None; + bool drawGizmos = UniversalRenderPipelineDebugDisplaySettings.Instance.RenderingSettings.debugSceneOverrideMode == DebugSceneOverrideMode.None; m_IsPipelineExecuting = true; ref CameraData cameraData = ref renderingData.cameraData; diff --git a/com.unity.render-pipelines.universal/Runtime/UniversalRenderPipeline.cs b/com.unity.render-pipelines.universal/Runtime/UniversalRenderPipeline.cs index 711cb1ad63c..c5f941370e6 100644 --- a/com.unity.render-pipelines.universal/Runtime/UniversalRenderPipeline.cs +++ b/com.unity.render-pipelines.universal/Runtime/UniversalRenderPipeline.cs @@ -181,7 +181,7 @@ public UniversalRenderPipeline(UniversalRenderPipelineAsset asset) DecalProjector.defaultMaterial = asset.decalMaterial; DebugManager.instance.RefreshEditor(); - m_DebugDisplaySettingsUI.RegisterDebug(DebugDisplaySettings.Instance); + m_DebugDisplaySettingsUI.RegisterDebug(UniversalRenderPipelineDebugDisplaySettings.Instance); } protected override void Dispose(bool disposing) @@ -1225,7 +1225,7 @@ static void SetupPerFrameShaderConstants() static void CheckAndApplyDebugSettings(ref RenderingData renderingData) { - DebugDisplaySettings debugDisplaySettings = DebugDisplaySettings.Instance; + var debugDisplaySettings = UniversalRenderPipelineDebugDisplaySettings.Instance; ref CameraData cameraData = ref renderingData.cameraData; if (debugDisplaySettings.AreAnySettingsActive && !cameraData.isPreviewCamera) diff --git a/com.unity.render-pipelines.universal/ValidationExceptions.json.meta b/com.unity.render-pipelines.universal/ValidationExceptions.json.meta index 673f4df8c0e..777bac21963 100644 --- a/com.unity.render-pipelines.universal/ValidationExceptions.json.meta +++ b/com.unity.render-pipelines.universal/ValidationExceptions.json.meta @@ -1,2 +1,7 @@ fileFormatVersion: 2 -guid: 3afe581e949e3cc489c978bd8e000c4b \ No newline at end of file +guid: 3afe581e949e3cc489c978bd8e000c4b +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: