Skip to content

Commit 765b93b

Browse files
Don't add component
1 parent 6865a28 commit 765b93b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

com.unity.render-pipelines.core/Runtime/Debugging/DebugUpdater.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ class DebugUpdater : MonoBehaviour
1919
bool m_RuntimeUiWasVisibleLastFrame = false;
2020

2121
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterSceneLoad)]
22-
[Conditional("DEVELOPMENT_BUILD"), Conditional("UNITY_EDITOR")]
2322
static void RuntimeInit()
2423
{
24+
#if DEVELOPMENT_BUILD || UNITY_EDITOR
2525
if (DebugManager.instance.enableRuntimeUI)
2626
EnableRuntime();
27+
#endif
2728
}
2829

2930
internal static void SetEnabled(bool enabled)

0 commit comments

Comments
 (0)