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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- Crash with “Fatal Error! The file ‘MemoryStream’ is corrupted!” when adding a large number in Font Character Rects Size field
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.