Search Issue Tracker

Active

Under Consideration for 2022.3.X, 6000.0.X, 6000.1.X, 6000.2.X

Votes

1

Found in

2022.3.62f1

6000.0.49f1

6000.1.4f1

6000.2.0b2

Issue ID

UUM-107302

Regression

No

The previous element in the array is modified when assigning an Asset to a new element of AssetReferenceT

-

Reproduction steps:
1. Open the attached project "ReproProj"
2. In the Project window, select “ItemList”
3. For Element 0, select “ItemA“
4. Click the “+” button
5. For Element 1, select “ItemB“
6. For Element 0, click on a small circle on the right of its field

Expected result: The Select Addressable Asset window opens, but “ItemB” is not selected
Actual result: Element 0 automatically selects “ItemB”

Reproducible with: 2022.3.62f1, 6000.0.49f, 6000.1.4f1, 6000.2.0b2

Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested

Notes:
- This might be breaking the assignment at the point of assigning the second element, just no change event seems to be created
- This also breaks the same way if you don't assign any assets to Element 0
- If you add more elements into the list/array, it always breaks with the last element modifying the second last element
- Subsequent reassignments of those elements do not break this way
- OnValidate is never called for assigning the last element, unless you're assigning it to None. This is not consistent with normal behaviour with a list/array of Item rather than AssetReferenceT<Item>, where OnValidate is called for every assignment.

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.