Search Issue Tracker

Active

Under Consideration for 6000.6.X

Votes

0

Found in

6000.0.69f1

6000.3.9f1

6000.4.0b9

6000.5.0a8

6000.6.0a1

Issue ID

UUM-138134

Regression

No

Prefab Variant Components are removed when deleting "RequireComponent" fields via Script due to YAML state inconsistency

Serialization

-

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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.