Skip to content

Commit cdb87a8

Browse files
kirill-titov-uEvergreen
authored andcommitted
Partially revert a PR #81816 and register debug data when in build process
1 parent bcc40b7 commit cdb87a8

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

Packages/com.unity.render-pipelines.core/Runtime/Debugging/DebugDisplaySettingsUI.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ private void Reset()
3232
/// <param name="settings"><see cref="IDebugDisplaySettings"/> to be registered</param>
3333
public void RegisterDebug(IDebugDisplaySettings settings)
3434
{
35-
#if UNITY_EDITOR
36-
if (UnityEditor.BuildPipeline.isBuildingPlayer)
37-
return;
38-
#endif
3935
DebugManager debugManager = DebugManager.instance;
4036
List<IDebugDisplaySettingsPanelDisposable> panels = new List<IDebugDisplaySettingsPanelDisposable>();
4137

Packages/com.unity.render-pipelines.high-definition/Runtime/Debug/DebugDisplay.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2125,11 +2125,6 @@ void UnregisterRenderingDebug()
21252125

21262126
internal void RegisterDebug()
21272127
{
2128-
#if UNITY_EDITOR
2129-
if (UnityEditor.BuildPipeline.isBuildingPlayer)
2130-
return;
2131-
#endif
2132-
21332128
RegisterMaterialDebug();
21342129
RegisterLightingDebug();
21352130
RegisterRenderingDebug();
@@ -2149,7 +2144,7 @@ void UnregisterDebugItems(string panelName, DebugUI.Widget[] items)
21492144
{
21502145
if (items == null || items.Length == 0)
21512146
return;
2152-
2147+
21532148
var panel = DebugManager.instance.GetPanel(panelName);
21542149
if (panel != null)
21552150
panel.children.Remove(items);

0 commit comments

Comments
 (0)