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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
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.