Steps to reproduce:
- Open the attached project
- Open the SampleScene
- Select the Triangle object in the Hierarchy
- In the Inspector, change the Casting Source property from SpriteRenderer to Shape Editor
- Observe that the Component view has been updated and some Properties become hidden
- Perform an Undo action
- Observe the ShadowCaster 2D component again
Actual results: Casting Source property remains set to Shape Editor, but SpriteRenderer-specific properties reappear
Expected results: ShadowCaster 2D component is fully updated after performing Undo Redo operations
Reproducible with versions: 6000.5.0a8, 6000.6.2f1, 6000.7.0b1, 7000.0.0a1
Not reproducible with versions: 6000.0.84f1, 6000.3.24f1, 6000.5.0a7
Tested on (OS): macOS 26.6.2
Notes:
- Between 6000.5.0a8 and 6000.5.0b11 patches, Undo functionality would not refresh the Component view at all. This behaviour changed from 6000.5.0f1+, where the issue would reproduce as described in the reproduction steps