Search Issue Tracker
By Design
Votes
0
Found in
2021.3.27f1
2022.3.1f1
2023.1.0f1
2023.2.0a19
Issue ID
UUM-40321
Regression
Yes
Mask component stops working when Render Objects Event is set to AfterRenderingPostProcessing
Reproduction steps:
1. Open the attached project "My project.zip"
2. Observe the Game view
Expected result: the red square is masked by the white square
Actual result: the red square isn't masked
Reproducible with: 2021.3.18f1, 2021.3.27f1, 2022.2.0f1, 2022.3.1f1, 2023.1.0f1, 2023.2.0a19
Not reproducible with: 2021.3.17f1, 2022.2.0a13
Could not test with: 2022.2.0a14, 2022.2.0b16 (the image disappears when Post-processing is enabled)
Reproducible on: macOS 13.2.1 (Intel), Windows 10 (user’s)
Notes:
1. Not reproducible with any other Event
2. Not reproducible when Post-processing is disabled in URP-HighFidelity-Renderer
3. Not reproducible with the Rect Mask 2D component
4. Issue was previously fixed and regressed: [https://issuetracker.unity3d.com/issues/urp-mask-component-stops-working-when-a-renderer-feature-renders-it-after-post-processing]
5. Same issue is reproducible in Scene view since 2021.3.13f1
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:
Closing as this is currently an expected limitation that will be automatically resolved with the official adoption of RenderGraph in future versions of Unity.
Currently (with the non-RenderGraph path) the depth-stencil buffer is discarded after post-processing and can no longer be bound as an attachment.
In future this should instead work since RenderGraph will be able to preserve the depth buffer beyond its current lifetime (after post) on behalf of the RenderObjects pass declaring it as an RT attachment there.