Search Issue Tracker
Won't Fix
Votes
0
Found in
5.4.0b22
Issue ID
809424
Regression
No
Inspector allows to select non-callable methods on button onClick() events
Steps to reproduce:
1. Open "case 809424 repro" project
2. Open "test" scene
3. Select Canvas>Button object in hierarchy
4. Select onClick() event method: ButtonMethods>MyStaticMethod
5. Play in editor
--This method should print "You've called static method" in the console
Expected: Inspector shouldn't allow to select non-callable method
Actual: Inspector allowed to select non- callable static method
Workaround: Wrap static method into another public void method. Select onClick() event method: ButtonMethods>StaticMethodWrapper()
Reproduced with: 5.4.0b24, 5.3.5p5, 5.2.4f1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Add comment