Search Issue Tracker
Fixed in 2021.1.X
Duplicate in 2020.3.X
Votes
0
Found in
2020.1.0a1
2020.2
2020.2.0f1
Issue ID
1314751
Regression
Yes
Inspector throws errors and stops displaying fields when changing SerializeReference instance with UnityEvent field of same name
How to reproduce:
1. Open the attached project
2. Open SampleScene
3. Click on Test in the Scene Hierarchy
4. Click Change To My Class 1
5. Click Change To My Class 2
Expected result: SerializeReference class is changed and the same fields are displayed in the inspector
Actual result: Errors are thrown to the Console and Inspector stops displaying fields
Reproducible with: 2020.1.0a1, 2020.2.5f1, 2021.1.0b6, 2021.2.0a1, 2021.2.0a3
Not reproducible with: 2019.4.19f1, 2021.1.0b7, 2021.2.0a4
Could not test with: 2018.4.30f1 (no Serialize Reference attribute)
Notes:
1. Unity 2019.4.19f1 Inspector does not display Unity Event fields at all
2. Unity 2020.1.0a1 Clicking on the object will cause a Fatal Error
3. Unity 2021.2.0a3 will crash on start
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Texture displays visual artifacts and has a broken aspect ratio when it is imported in RGB 48-bit format
- Diagnostic Warning Resets When Navigating Away and Returning to Diagnostics Settings
- Checkbox Collides with Text in Shader Graph Preferences Settings
- Crash on mecanim::animation::TransformValuesFromClip when entering the Play Mode in a project with Animancer Pro v8
- Connection to Named Pipes fails when server and client are run
Resolution Note (fix version 2021.1):
Does no longer reproduce with: 2021.1.0b7, 2021.2.0a4