How to reproduce:
1. Open the attached “IN-137370.zip” Project
2. Select the “TestPrefab Variant” in the Project Window
3. Observe the Components in the Inspector Window
4. Open the “TestOther” Script
5. Delete the “[RequireComponent(typeof(TestRequired))]” line
6. Select the “TestPrefab Variant” and observe the Inspector Window
Actual result: The Require Component attachment is removed due to having a YAML line as a Removed Component
Expected result: State is persistent across the GUI and the YAML data
Reproducible with: 6000.0.72f1, 6000.3.12f1, 6000.4.1f1, 6000.5.0b1, 6000.6.0a1
Reproducible on: macOS 26.3.1 (M3 Pro), macOS M4 Max (user’s)
Not reproducible on: No other environment tested