Search Issue Tracker

Fixed in 2020.1

Fixed in 2018.4, 2019.2, 2019.3

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

uGUI

-

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

Comments (24)

  1. D12499e14c789d8a6ed5abda348001c1?d=mm

    SkyToss

    Sep 22, 2019 12:39

    Is it fixed pls? I install Unity 2019.3.0b4 Beta and i still dont see dynamic functions with parameters :(. When can i find: Event_Listener_Bug.zip pls? Thx

  2. 61a809b50e89781fcbaf13fc781b9b5a?d=mm

    torcher999

    Sep 21, 2019 21:52

    Occurs in 2019.2.6f1, 2019.3.0b4, 2020.1.0a3 for me.

  3. 3631ac9da6b8864add510b2d94da3e41?d=mm

    Chifilly

    Sep 21, 2019 16:32

    I can confirm this is fixed in 2019.3.0b4. I can properly work on my game again

  4. 6ca7782e240804d0e9125b211b22bf83?d=mm

    JPoenisch

    Sep 17, 2019 15:19

    Also happens in 2019.2.5f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.