Search Issue Tracker

Active

Votes

0

Found in

2021.3.46f1

2022.3.52f1

6000.0.27f1

6000.1.0a4

Issue ID

UUM-87076

Regression

No

"PrefabUtility.ApplyPropertyOverride" method works only every second time when a property value is changed within the same script

--

-

How to reproduce:
1. Open the “OverrideBug.zip“ project
2. Open the “SampleScene”
3. Select the “Test“ Prefab in the Hierarchy
4. Press the three vertical dots on the “Test“ Script Component in the Inspector
5. Click the “PrefabTest“ button in the Context menu
6. Observe the last log of the Console

Expected result: The last Console message reads “Has Prefab Overrides After: False“
Actual result: The last Console message reads “Has Prefab Overrides Before: True”

Reproducible in: 2021.3.46f1, 2022.3.52f1, 6000.0.27f1, 6000.1.0a4

Reproduced on: Windows 11 Pro (23H2)
Not reproduced on: No other environment tested

Notes:
- Does not reproduce on a non-prefab Asset
- The second time the “PrefabTest“ button is clicked it applies the overrides and returns the expected result
- The behavior can be observed in the Inspector tab as well. When the overrides are not applied, a blue strip appears to the left of the changed field

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.