diff --git a/com.unity.render-pipelines.core/Runtime/Debugging/DebugUI.Fields.cs b/com.unity.render-pipelines.core/Runtime/Debugging/DebugUI.Fields.cs index b6a1f5df4d5..d2005a63f8a 100644 --- a/com.unity.render-pipelines.core/Runtime/Debugging/DebugUI.Fields.cs +++ b/com.unity.render-pipelines.core/Runtime/Debugging/DebugUI.Fields.cs @@ -320,6 +320,9 @@ internal void InitQuickSeparators() internal void InitIndexes() { + if (enumNames == null) + enumNames = new GUIContent[0]; + indexes = new int[enumNames.Length]; for (int i = 0; i < enumNames.Length; i++) { diff --git a/com.unity.render-pipelines.high-definition/CHANGELOG.md b/com.unity.render-pipelines.high-definition/CHANGELOG.md index d050c38c362..cf1956cffbb 100644 --- a/com.unity.render-pipelines.high-definition/CHANGELOG.md +++ b/com.unity.render-pipelines.high-definition/CHANGELOG.md @@ -591,6 +591,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Fixed depth prepass and postpass being disabled after changing the shader in the material UI. - Fixed issue with sceneview camera settings not being saved after Editor restart. - Fixed issue when switching back to custom sensor type in physical camera settings (case 1244350). +- Fixed a null ref exception when running playmode tests with the render pipeline debug window opened. ### Changed - Improve MIP selection for decals on Transparents