Search Issue Tracker

Fixed

Fixed in 2022.3.17f1, 2023.2.5f1, 2023.3.0a19

Votes

0

Found in

2022.3.13f1

2023.2.0b16

2023.3.0a11

Issue ID

UUM-56069

Regression

Yes

[HDRP] Console errors when selecting an object that has a child object containing ReflectionProxyVolume component

--

-

Steps to reproduce:

1. Create an empty Game Object
2. Create an empty child Game Object under the object from step 1
3. Add a Reflection Proxy Volume Component to the object from step 2
4. Select the parent object from step 1 (save the scene and re-open it if the error does not show up; repeat this step)
5. Observe the console

 

Reproducible with: 2022.3.13f1, 2023.2.0b16, 2023.3.0a11, 2023.3.0a14

Not reproducible with: 2021.3.32f1, 2022.3.12f1, 2023.2.0b15, 2023.3.0a10

 

Note: this issue is also observable in the HDRP Sample Scene Template because it contains parented Reflection Proxy Volumes.

Expected result: No errors in the console
Actual result: The following error is thrown

MissingReferenceException: The object of type 'UnityEngine.Rendering.HighDefinition.ReflectionProxyVolumeComponent' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.
UnityEngine.Object+MarshalledUnityObject.TryThrowEditorNullExceptionObject (UnityEngine.Object unityObj, System.String parameterName) (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/UnityEngineObject.bindings.cs:697)
UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException (System.Object obj) (at /Users/bokken/build/output/unity/unity/Runtime/Export/Scripting/BindingsHelpers.cs:61)
UnityEngine.Component.get_transform () (at <e7571caf28bc4002b1df836808f968b2>:0)
UnityEditor.Rendering.HighDefinition.ReflectionProxyVolumeComponentEditor.DrawGizmosSelected (UnityEngine.Rendering.HighDefinition.ReflectionProxyVolumeComponent proxyVolumeComponent, UnityEditor.GizmoType gizmoType) (at ./Library/PackageCache/com.unity.render-pipelines.high-definition@17.0.1/Editor/Lighting/Reflection/Volume/ReflectionProxyVolumeComponentEditor.cs:56)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:206)

(On 2023.3.X)

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.Rendering.HighDefinition.ReflectionProxyVolumeComponentEditor.DrawGizmosSelected (UnityEngine.Rendering.HighDefinition.ReflectionProxyVolumeComponent proxyVolumeComponent, UnityEditor.GizmoType gizmoType) (at ./Library/PackageCache/com.unity.render-pipelines.high-definition@17.0.1/Editor/Lighting/Reflection/Volume/ReflectionProxyVolumeComponentEditor.cs:53)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:206)

  1. Resolution Note (fix version 2023.3.0a19):

    Fixed in 2023.3.0a19

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.