Search Issue Tracker
Fixed in 10.1.X
Votes
0
Found in [Package]
10.0.0-preview.27, 9.0.0-preview.54
Issue ID
1285351
Regression
No
[HDRP][Compositor] Objects of the Hierarchy are deleted with errors on undoing after adding Input filters in Basic(Built-in)scen
All objects of the Hierarchy are deleted along with MissingReferenceException on undoing after adding Input filters in Basic(Built-in) scene.
Steps to repro:
1. Create a new HDRP project.
2. File > New Scene > Select > Basic (Built-in) scene.
3. Windows > Render Pipeline > Graphics Compositor > Enable Compositor.
4. Render Schedule > Select Camera SubLayer > Add ChromaKeying Input Filter.
5. Press "CTRL + Z" 4-5 times.
Actual Result:
-All objects of the Hierarchy are deleted.
-MissingReferenceException error is thrown in the console.
Expected Result:
-No objects are deleted from the Hierarchy.
-No errors in the console.
Reproducible in:
2020.2.0b8, 2020.2.0a15 with Package Version 10.0.0-preview.27, 9.0.0-preview.54, 9.0.0-preview.33.
Note: Basic (Built-in) scene option is available from 2020.2.0a15.
Environment:
Occurring on Windows 10 & Mac 10.15.
Stacktrace:
Camera to copy from must not be null
UnityEngine.Rendering.HighDefinition.Compositor.CompositionManager:Update ()
MissingReferenceException: The object of type 'Camera' 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.Component.GetComponent[T] () (at <7c72a31c6717401a8f3a6328e904d4c3>:0)
UnityEngine.Rendering.HighDefinition.Compositor.CompositorLayer.UpdateOutputCamera () (at library/packagecache/com.unity.render-pipelines.high-definition@10.0.0-preview.27/runtime/compositor/compositionlayer.cs:476)
UnityEngine.Rendering.HighDefinition.Compositor.CompositorLayer.Update () (at library/packagecache/com.unity.render-pipelines.high-definition@10.0.0-preview.27/runtime/compositor/compositionlayer.cs:488)
UnityEngine.Rendering.HighDefinition.Compositor.CompositionManager.Update () (at library/packagecache/com.unity.render-pipelines.high-definition@10.0.0-preview.27/runtime/compositor/compositionmanager.cs:509)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inspector's custom tooltip is displayed incorrectly when the name is truncated in UI toolkit
- Crash on ScriptableRenderLoopDraw when rendering a specific VFX in Play Mode
- The script is not renamed in the Project window when renaming and a compilation Error is present
- Average FPS in Play Mode degradation on a newly created BiRP project when it's upgraded from 2020.3.48f1 to a newer Editor version
- DecoratorDrawer indentation is incorrect when it is called with EditorGUI
Resolution Note (fix version 10.1):
Fixed in Package version 10.1.0.