Search Issue Tracker
Fixed in 2020.1.X
Fixed in 2018.4.X, 2019.2.X, 2019.3.X
Votes
8
Found in
2019.2.1f1
2019.2.5f1
2019.3.0a12
2020.1.0a1
Issue ID
1178687
Regression
Yes
UnityEvent drawer no longer handles events in non-public fields correctly
How to reproduce:
1. Open the attached "Event_Listener_Bug.zip" project
2. Open "SampleScene"
3. Select the "Listener" in the Hierarchy
4. In the Player Input component inspector, open the "Events" and "Player" foldouts
5. Try to set the Fire() event listener to Script.Click()
Expected results: The Script.Click() method can be chosen
Actual results: Only static parameters can be chosen
Reproducible with: 2019.2.7f1, 2019.3.0b1, 2020.1.0a2
Not reproducible with: 2018.4.7f1, 2019.2.3f1, 2019.3.0a11
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
- Prefab override popup is cropped/positioned incorrectly when more than one display is used and a higher display Scale is set
- Opening a dropdown on a small screen results in its instant closing when mouse cursor is pressed where the dropdown is going to be opened
- Only "ArgumentNullException: Value cannot be null" is displayed instead of all the actual errors when opening a project with numerous compilation errors
- MultiColumnListView and MultiColumnTreeView do not change selection on first input when focus is set by code
- SerializedProperty.DataEquals is returning false when SerializedProperty.EqualContents return true
TriCAT_Unity-Pro-1
Feb 17, 2020 15:33
Still not fixed for 2019.2.17f1
oybek2891
Dec 09, 2019 19:23
Still not fixed in 2019.2.13f and 2019.3.0f1
NeilWishart
Nov 18, 2019 10:12
The new issue was marked as a duplicate, anybody looking for info on the new fix will need to check here instead: https://issuetracker.unity3d.com/issues/upgrading-the-project-results-in-missing-system-dot-serializable-unityevent-function
Elringus
Oct 26, 2019 12:57
Here is the link to the new issue: https://issuetracker.unity3d.com/issues/unityevent-drawer-does-not-handle-generic-event-parameters-correctly-when-the-class-is-derived-from-another-class
luis_oliveiras
Oct 24, 2019 00:42
the link to the new issue is broken, could you post it again?
Domas_L
Oct 22, 2019 17:48
Hello! It seems that the issue was only partially fixed, and in some cases, in particular when the class is derived from another class, the issue can still be reproduced. This issue is now being tracked, and you can follow its progress here: https://issuetracker.unity3d.com/is...-when-the-class-is-derived-from-another-class
mnarimani
Oct 18, 2019 12:07
Issue still exists in 2019.2.9
eprovencher
Oct 15, 2019 16:56
It seems that there are 2 bugs here. The private field bug may have been fixed, but dynamic method parameters from events are still not fixed.
https://forum.unity.com/threads/2018-4-9f1-doesnt-show-dynamic-methods-for-events.758357/
eprovencher
Oct 15, 2019 14:21
Just downloaded 2018.4.11, and the issue is still present with UnityEvents trying to pass dynamic parameters via public functions.
Elringus
Oct 13, 2019 17:18
Still not fixed in 2019.2.9f1.