Search Issue Tracker
Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.
Postponed
Votes
9
Found in
2019.4
2020.2
2021.1
2021.2
Issue ID
1298773
Regression
No
[UnityEvent] PropertyField() doesn't display the correct type when using SerializeReference on a polymorphic class
How to reproduce:
1. Open the attached "" project
2. Open the "SampleScene" Scene from the Assets > Scenes folder
3. Select the "ScriptHolder" GameObject from the Hierarchy window
4. Open the Inspector window
5. Expand the collapsed fields
Expected results: the type of the 3rd and 4th fields in the Inspector window is "Callback(TestEvent1)
Actual results: the type of the 3rd and 4th fields in the Inspector window is "Callback()
Reproducible with: 2019.4.20f1, 2020.2.3f1, 2021.1.0b5, 2020.2.0a3
Could not test with: 2018.4.31f1 (SerializeReference attribute isn't available)
Notes:
-Putting a breakpoint in the OnInspectorGUI and debugging reveals that the type of the "eventPropert" object is "managedReference<TestEvent1Entry>"
Comments (1)
-
sindrijo_
Jul 01, 2021 21:00
I'm not sure this is so hard to fix, the GetDummyEvent just has to take into account managedReference when resolving the event-type to instantiate for the 'dummyevent' used in the event inspector.
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
- [UI Builder] Viewport's gizmos for Margin and Padding disappear when dragging to modify the value and the cursor leaves the Spacing section
- "Multiplayer Center" window does not reflect changes made in "Other Packages" section
- Crash on D3DKMTOpenResource when capturing with RenderDoc while GPU Skinning is set to GPU(Batched)
- Editing and saving Curve changes in UI Builder window throws multiple errors in the Console
- [UI Builder] Value is not selected when left clicking on Spacing/Border Widget values
Resolution Note:
As of now we dont support the