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

0

Found in

2018.4

2019.4.11f1

2020.2

Issue ID

1281399

Regression

No

UnityEvent removes 'set_' from method name when selecting methods in the OnClick() event Function dropdown

uGUI

-

How to reproduce:
1. Open the attached '1281399.zip' project
2. Open the 'SampleScene' Scene
3. In the Hierarchy window select 'Canvas' > 'Button'
4. In the Inspector window under the Button component expand the Function selection dropdown
5. In the Function selection dropdown select 'Test' > 'Test_Method'

Expected result: The displayed method name is 'set_TestMethod'
Actual result: The displayed method name is 'TestMethod'

Reproducible with: 2018.4.28f1, 2019.4.12f1, 2020.1.8f1, 2020.2.0b6

  1. Resolution Note:

    Although we might be able to fix this it would come at the cost of bloating the UnityEvent/

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.