Home Game Development Arrow Function are usually not within the Cocos Creator’s Editor -> cc.Button -> Click Events Select Options – Cocos Creator

Arrow Function are usually not within the Cocos Creator’s Editor -> cc.Button -> Click Events Select Options – Cocos Creator

0

[ad_1]

good day, when i take advantage of cocos creator editor’s cc.Button Component, and that i need to relate the button’s clickevent by editor. nevertheless in editor, arrow perform in my script are usually not regonized.

hope editor can present the arrowFunction too!

HI, i’m not an skilled of CC, however i believe CC doesn’t present to you your technique as a result of the arrow perform is basically considerated a “lambda function”, a perform with no title that you simply set as worth to a variable or property (that is your case i believe).

A query, why do you need to use an arrow perform utilized to a property as an alternative of a category technique? There aren’t distinction, solely a method of coding, that is what i knew.

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here