Steps to reproduce:
- Open the attached project
- Open the SampleScene
- Enter Play mode
- Switch to Scene View
- Select the Triangle object in the Hierarchy
- Press the Edit Shape Button for the ShadowCaster2D component in the Inspector window
- Change the ShadowCaster's shape
- Perform an Undo action
- Observe the Console window
Actual results: Undo action is performed correctly, however "No script asset for ShadowCasterPath. Check that the definition is in a file of the same name." warning is thrown in the Console
Expected results: No warnings or errors are thrown when performing undo/redo actions for the ShadowCaster shape in Play mode
Reproducible with versions: 6000.0.84f1, 6000.3.24f1, 6000.6.2f1, 6000.7.0b1, 7000.0.0a1
Tested on (OS): macOS 26.6.2
Notes:
- Warning is not thrown in the Edit mode