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
- Hidden method is opened in IDE when double clicking the log message in the Console that has the HideInCallstackAttribute
- Errors in the Console when creating a new "2D Platformer Microgame" template project
- Prefab Override popup displays on wrong monitor when Inspector width is resized to minimum
- Scroll View is not moving by inertia after scrolling by click and dragging when Editor window is minimized and Canvas "Render Mode" is set to "World Space"
- "type mismatch error" occurs when the currentDirectionWS output of a Sample Water Surface node is connected to a float3 input
Resolution Note (fix version 2021.1):
Does no longer reproduce with: 2021.1.0b7, 2021.2.0a4