Unity Issue Tracker - "ShadowCaster2D" Component doesn't work when the "Casting Source" is set to "Polygon Collider 2D"
Closed
UUM-104849
"ShadowCaster2D" Component doesn't work when the "Casting Source" is set to "Polygon Collider 2D"
Unity: 2D
Won't Fix
6.5.X
6.4.X
6.3.X
6.2.X
6.1.X
6.0.X
Cancelling: the 6000.1 version has reached its end of life. If you need additional fixes, please upgrade to a newer Unity version.
Reproduction steps:
1. Open the attached “IN-101157_thief-on-a-train“ project
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. Select the “lockpick group > tangibles > blocker“ GameObject in the Hierarchy
4. Set the “Shadow Caster 2D” Component’s “Casting Source” to “None“
5. Revert the “Casting Source“ field back to “Polygon Collider 2D“
4. Observe the GameObject’s Polygon Collider and the shadow under it inside the Game View
Expected result: The shadow is cast according to the Polygon Collider’s shape
Actual result: There’s no shadow underneath the GameObject