Search Issue Tracker

Active

Votes

0

Found in

2018.4

2019.4

2020.2

2020.2.0f1

2021.1

Issue ID

1301687

Regression

No

Object picker fails to set selected Object when Array/List is defined before the Object and modified from OnBeforeSerialize

Serialization

-

Reproduction steps:
1. Open the user's attached project and SampleScene scene
2. In the Hierarchy window, select TestList GameObject
3. In the Inspector, inside of TestListFails component, make sure that field Some Item is empty and that Items has 0 elements
4. Expand Items field
5. Select Object Picker for Some Item field
6. Select Item1 and observe the name of an Item in the Inspector
7. Select Item2 and observe the name of an Item in the Inspector

Expected result: Name of an Item is Item2
Actual result: Name of an Item is Item1

Reproducible with: 2018.4.19f1, 2019.4.17f1, 2020.2.1f1, 2021.1.0b1

Notes:
1. Only reproducible when Array/List is empty and choosing different Object without closing Object Picker
2. Only reproducible when Array/List is expanded in the Inspector
3. Not reproducible when Array/List is defined and initialized after the Object
4. Not reproducible on Mac

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.