How to reproduce:
- Open the attached “IN-151964” project
- Open the “Scene” scene
- Right click on “Button” GameObject in the Hierarchy window
- Click Prefab->Open Asset in Isolation
- Enter Play mode
- Close Prefab Mode
- Exit Play mode
- Observe Console window
Actual result: An “IndexOutOfRangeException: Index was outside the bounds of the array.“ exception gets thrown
Expected result: No errors get thrown when exiting Play mode
Reproducible with: 6000.6.0a6, 6000.6.0b10, 6000.7.0a6
Not reproducible with: 6000.0.81f1, 6000.3.23f1, 6000.5.10f1, 6000.6.0a5
Reproducible on: Windows 11
Not reproducible on: No other environment tested