Search Issue Tracker

Fixed

Fixed in 6000.0.72f1, 6000.3.12f1, 6000.4.1f1, 6000.5.0b1, 6000.6.0a1

Votes

0

Found in

6000.0.67f1

6000.3.8f1

6000.4.0b8

6000.5.0a7

6000.6.0a1

Issue ID

UUM-135039

Regression

No

Object reference is saved on an incorrect property when FormerlySerializedAs is used on an overridden prefab variant field

Serialization

-

How to reproduce:
1. Open the attached project “IN-135047”
2. In the Project window, right click the “Assets/Cube” prefab and select “Create → Prefab Variant”
3. In the Project window, select the created prefab variant
4. In the Inspector, open the object picker window for the “Test Asset” property on the “Object Variable” component and select the “Capsule” prefab
5. Deselect and reselect the created prefab
6. Observe the “Test Asset New” and “Test Asset” property values
7. Open the “Capsule.prefab.meta” file using a text editor and copy the GUID to your clipboard
8. Open the “Cube Variant.prefab” file using a text editor and lookup the copied GUID
9. Observe the location of the “Capsule” prefab's GUID

Actual result: The GUID of the “Capsule” prefab appears under “m_testAsset” propertyPath and does not match the values shown in the Inspector
Expected result: The GUID of the “Capsule” prefab appears under “m_testAssetNew” propertyPath and matches the values shown in the Inspector

Reproducible with: 2023.1.0a3, 6000.0.68f1, 6000.3.10f1, 6000.4.0b10, 6000.5.0a7

Reproducible on: Windows 11
Not reproducible on: No other environments tested

  1. Resolution Note:

    Fixed in 6000.6.0a1

  2. Resolution Note (fix version 6000.6.0a1):

    Fixed in 6000.6.0a1

  3. Resolution Note (fix version 6000.5.0b1):

    Fixed in 6000.5.0b1

  4. Resolution Note (fix version 6000.4.1f1):

    Fixed in 6000.4.1f1

  5. Resolution Note (fix version 6000.3.12f1):

    Fixed in 6000.3.12f1

  6. Resolution Note (fix version 6000.0.72f1):

    Fixed in 6000.0.72f1

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.