Search Issue Tracker
By Design
By Design in 2023.3.X
Votes
0
Found in
2021.3.25f1
2022.2.20f1
2023.1.0b16
2023.2.0a15
2023.3.0a3
Issue ID
UUM-35886
Regression
No
CommandBuffer.DrawRenderer fails to render GameObjects after building the project
Reproduction steps:
1. Open the attached “CustomTesting0.zip“ project
2. Open the “MainCustomPassTestingScene0” scene
3. Build the project
4. Observe the Game window
Expected result: GameObjects are rendered
Actual result: GameObjects are not rendered
Reproducible with: 12.1.11 (2021.3.25f1), 14.0.7 (2022.2.20f1), 15.0.5 (2023.1.0b16), 16.0.1 (2023.2.0a15)
Could not test with: 10.10.1 (2020.3.48f1) (Errors in the Console)
Reproduced on: macOS Monterey 12.6 (Intel), Windows 11 (by the reporter)
Notes:
- Also reproducible in Build
- Could not test with HDRP (Errors in the Console)
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
- An "RefreshInternalV2 is called before InitialRefresh" error is thrown when opening a project where a build profile with Player settings added is selected
- MeshCollider preview gizmo disappears from the Scene view when overriding the mesh asset using any 3D editing tool
- Tutorial project is not created when started from the Get set up tab
- Audio Listener Component expands when selected
- [iOS] Frame Debugger rendering output doesn't work with iOS builds
Resolution Note:
We looked into this issue. Indeed the CommandBuffer.DrawRenderer API will not draw objects that are not part of the culling mask from the camera.
The way you can approach what you are trying to do in URP is to set the culling mask of the camera to include the custom layers (Closest, Mid, Farthest) and in the URP renderer you filter those layers so they are not drawn in the opaque, gbuffer and transparent passes. In order to filter you can go to the Renderer asset and under the option Filtering you remove the layers (Closest, Mid, Farthest) from both opaque and transparent.
Resolution Note (2023.3.X):
We looked into this issue. Indeed the CommandBuffer.DrawRenderer API will not draw objects that are not part of the culling mask from the camera.
The way you can approach what you are trying to do in URP is to set the culling mask of the camera to include the custom layers (Closest, Mid, Farthest) and in the URP renderer you filter those layers so they are not drawn in the opaque, gbuffer and transparent passes. In order to filter you can go to the Renderer asset and under the option Filtering you remove the layers (Closest, Mid, Farthest) from both opaque and transparent.