Search Issue Tracker
Fixed
Votes
0
Found in
6000.0.45f1
6000.1.0b13
6000.2.0a8
Issue ID
UUM-101876
Regression
Yes
Shadow Caster 2D component is throwing NullReferenceException errors when Casting Source is set to "ShapeEditor"
How to reproduce:
1. Open the attached “IN-98275“ project
2. Open the “SampleScene“
3. In the Hierarchy window, select the “Circle“ GameObject
4. Make sure the GameObject has the “ShadowCaster 2D“ component in the Inspector window, where “Casting Source“ is set to “ShapeEditor“
5. Observe the results in the Console window
Expected result: There are no errors in the Console window
Actual result: {{NullReferenceException}} errors are displayed in the Console window
Reproducible with: 6000.0.39f1, 6000.0.45f1, 6000.1.0b13, 6000.2.0a8
Not reproducible with: 2022.3.60f1, 6000.0.38f1
Couldn't test with: 2021.3.50f1 (there isn't a Casting Source on the Shadow Caster 2D component)
Reproducible on: MacOS 15.3 (M4), Windows 11 (by user)
Not reproducible on: No other environments tested
Note: The issue won’t reproduce if the “Casting Source“ is changed from “ShapeEditor“ to “Sprite Renderer“
Comments (1)
-
RequiemOfTheSun
Apr 08, 2025 01:45
Please fix this.
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
- Unity Cloud icon does not appear next to project and does not connect correctly when the project is created with Cloud but closed right after creation
- ScrollerSlider in the Scroller Control is still using UXMLTraits
- Crash on ExtractHandles when shutting down the Editor in a specific scene while Burst jobs are in progress
- Unity Hub closes with no "Project is currently open" window when selecting an already open project from the Projects list
- The Hub freezes indefinitely when copy/pasting a lot of characters in the “Set project display name” Hub window since it has no character limit
Resolution Note:
Fixed by another internal issue: UUM-97647: ShadowCaster2D Throws NullReferenceException when using ShapeEditor casting source