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
- Crash on __pthread_kill when initializing Vuplex WebView while entering the Play Mode
- Crash on FindSurface when adding a custom Renderer Feature to a 2D Renderer Data Asset
- [Android] [Vulkan] [UI Toolkit] Application crashes when the device is rotated when it has UI Toolkit TextField on Vulkan devices
- Crash on DualThreadAllocator<DynamicHeapAllocator>::TryDeallocate when opening a specific project
- Crash on memset_repstos when pressing a UI button while in Play Mode
Resolution Note:
As of now we dont support the