Search Issue Tracker
Active
Under Consideration for 6000.6.X
Votes
1
Found in
6000.0.69f1
6000.3.11f1
6000.4.0b9
6000.5.0a8
6000.6.0a1
Issue ID
UUM-137798
Regression
No
ShadowCaster2D API no longer recognizes the 'useRendererSilhouette' property
How to reproduce:
1. Create a new 2D Project
2. In the MainScene create a new Empty GameObject
3. Attach the “Shadow Caster 2D” Component to the Empty GameObject
4. Create a new MonoBehaviour Script and attach it to the Empty GameObject
5. In the newly created Script write “using UnityEngine.Rendering.Universal;”
6. In the Start() Method write “GetComponent<ShadowCaster2D>().useRendererSilhouette = true” and Save Changes
7. Enter Play Mode and Select the Empty GameObject
8. Observe the Shadow Caster 2D Component values
Actual result: No changes in the Component Values
Expected result: Casting Source is set to Renderer Silhouette
Reproducible with: 6000.0.71f1, 6000.3.12f1, 6000.4.1f1, 6000.5.0b1, 6000.6.0a1
Reproducible on: macOS 26.3.1 (M3 Pro), Windows 10
Not reproducible on: No other environment tested
Note: Related Unity Documentation - https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@12.0/api/UnityEngine.Rendering.Universal.ShadowCaster2D.html
Comments (2)
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
- [Linux] Crash on mono_runtime_invoke when executing a specific script
- Installing the HDRP Water Samples doesn't notify the user to enable the "Water" on HDRP Asset
- Persistent Memory Leak in `ChunkDrawCommandOutput` and `CullingSplits.InitializeSplits`
- 1 KB or more of GC is allocated when Debug logging
- [HDRP][XR][DX12] SSR PBR Accumulation algorithm artifacts are present in one eye when using SPI OpenXR Rendering Mode
dossantosjosematheus5
Mar 23, 2026 21:12
[MovedFrom("UnityEngine.Experimental.Rendering.Universal")]
public abstract class ShadowCasterGroup2D : MonoBehaviour
ilcane87
Mar 23, 2026 19:05
For context, I'd like to point out that when you try to use the 'useRendererSilhouette' property from a script, a warning message tells you:
'ShadowCaster2D.useRendererSilhouette' is obsolete: 'useRendererSilhouette is deprecated. Use selfShadows instead. #from (2023.1)'
However the message is mistaken (it was added due to a misunderstanding after a past report of mine), because the property was never deprecated, it is still in the editor as of Unity 6 but with a different name:
Casting Source → Sprite Renderer
It does exactly what 'useRendererSilhouette' used to do up until Unity 2023, the only problem is it can't be set from a script anymore, which breaks backward compatibility with projects like mine that used to do so in older versions of Unity.
And the property 'selfShadows' does a different thing, so it makes no sense to suggest to use that one instead like the warning message currently does: one cannot replace the other.
The ideal solution to this issue would be to implement APIs that can set all options in the 'Casting Source' drop down menu of the ShadowCaster2D component, since some of them were newly added since Unity 2023, but the APIs weren't aligned to the changed component entirely.
The minimal solution would be to just let the already existing 'useRendererSilhouette' set 'Casting Source' to 'Sprite Renderer'.