Unity Issue Tracker - Element of an array with the SerializeReference attribute doesn't get reverted to null when trying to undo changes
Closed
UUM-2220
Element of an array with the SerializeReference attribute doesn't get reverted to null when trying to undo changes
Unity: Serialization
Backport
Won't Fix
2020.3.X
The underlying issue is fixed in Unity versions started from 2021.2.0a18. Unfortunately the fix is complicated and backporting it to 2020.3 will need the extra work to be done.
How to reproduce:
1. Open the user's attached project
2. Open the 'SampleScene'
3. In the Hierarchy select 'GameObject'
4. Add a new element to the Array
5. Use the dropdown menu for 'Element 0' to set its type to A
6. Press Ctrl + Z
7. Observe the Inspector
Expected result: The 'Element 0' value gets reverted to null
Actual result: The 'Element 0' value doesn't change
Reproducible with: 2019.4.28f1, 2020.3.13f1, 2021.1.11f1, 2021.2.0a17
Not reproducible with: 2021.2.0a18, 2021.2.0b1
Cannot test with: 2018.4.36f1 (due to errors)
Prioritise and Follow this issue
Have a workaround or additional info about this issue?