Search Issue Tracker
By Design
Votes
0
Found in
6000.0.50f1
6000.1.6f1
6000.2.0b3
Issue ID
UUM-108237
Regression
Yes
2D Sprite Renderer in front is affected by Sprites in the background when using Sorting Layers and a Shadow Caster 2D with Self Shadow
Reproduction steps:
1. Open the attached “IN-103291.zip” project
2. Open the “SampleScene”
3. Observe the Game view
Expected result: The middle circle Sprite is not affected/overlapped by the two circle Sprites behind it
Actual result: The middle circle Sprite is affected/overlapped by the two background Sprites
Reproducible with: 6000.0.50f1, 6000.1.6f1, 6000.2.0b3
Not reproducible with: 2022.3.62f1
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Notes:
- Expected behavior can be seen by selecting the “circle-Sprite” from Hierarchy and in the Inspector, disabling the “Shadow Caster 2D” Component
- Could not find the regression point due to the downgrade providing inconsistent results; sometimes the same version would reproduce and not reproduce on different occasions. Upgrading the project provided with the 2022.3 version makes the issue not reproducible in 6000.0. Therefore, it might be something related to creating the project with Unity 6
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note:
This doesn't appear to be a bug. The Target Sorting Layers on the Shadow Caster 2D includes New Layer 1 which is causing the issue.