Search Issue Tracker
By Design
Votes
0
Found in [Package]
4.1.0, 7.0.1
Issue ID
1184044
Regression
No
[HDRP] Scene View is visible in Game View when Camera's Background Type is set to None
How to reproduce:
1. Create a new project with HDRP
2. Select the Main Camera and in the Inspector set the Background Type to None
3. Enter the Play Mode
Expected outcome: In the Game View there should be only things rendered that are in Camera View.
Actual outcome: Scene View is rendered in the Game View.
Reproduced in Unity versions: 2018.4.8f1, 2019.2.4f1, 2019.3.0b3, 2020.1.0a3
Couldn't test with: 2017.4 stream (No Package Manager)
Reproduced in Package versions: 4.1.0, 7.0.1
Notes: Only reproducible on HDRP
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
The reason why the Scene View can be seen in the Game View, in such a case, is because the rendering buffers are shared between Cameras. It is expected if the Scene has only one game Camera that doesn't clear the buffer it's getting the content of whatever Camera that was rendered before.
The use case for setting the Background Type to None is when there are multiple Cameras in the Scene. In such a setup, the first Camera should always clear the buffer with either a "Solid Color" or the "Skybox" (Because the content of the buffer is not yet defined). After that, the subsequent Camera (Order being forced by Camera depth) can re-use the content of the previous one by setting the Background type to None.