Arrow Function are not in the Cocos Creator's Editor -> cc.Button -> Click Events Select Options

hello, when i use cocos creator editor’s cc.Button Component, and i want to relate the button’s clickevent by editor. however in editor, arrow function in my script are not regonized.

hope editor can show the arrowFunction too!

HI, i’m not an expert of CC, but i think CC doesn’t show to you your method because the arrow function is essentially considerated a “lambda function”, a function without a name that you set as value to a variable or property (this is your case i think).

A question, why do you want to use an arrow function applied to a property instead of a class method? There aren’t difference, only a style of coding, this is what i knew.

i am not sure exactly about the reason, but the phenomenon i met was that i can not get this when i don’t use lambda function in script