Skip to content

Commit 94bd87d

Browse files
Fix nullref in non dev build (#6327)
* Fix nullref in non dev build * Don't add component Co-authored-by: JulienIgnace-Unity <julien@unity3d.com>
1 parent 0d13f98 commit 94bd87d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-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)

com.unity.render-pipelines.high-definition/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3434
- Fixed shadow cascade transition not working properly with bias.
3535
- Fixed broken rendering when duplicating a camera while the Rendering Debugger is opened.
3636
- Fixed screen space shadow debug view not showing when no shadows is available.
37+
- Fixed nullref from debug menu in release build (case 1381556).
3738

3839
### Changed
3940
- Optimizations for the physically based depth of field.

0 commit comments

Comments
 (0)