Steps to reproduce:
- Create a new project with the Universal 2D template
- Import the attached "InventoryCheck.cs" into the Assets folder
- In the Hierarchy, create an empty GameObject and add the InventoryCheck component to it
- Enter Play Mode
Actual results: The Editor crashes.
Expected results: The failed assertion is reported in the Console and the Editor keeps running.
Reproducible with versions: 7000.0.0a5, 7000.0.0a10
Not reproducible with versions: 6000.0.85f1, 6000.3.27f1, 6000.6.7f1, 6000.7.0b6, 7000.0.0a1
Tested on (OS): Windows 11 Pro
Stack trace: