Wednesday, September 13, 2023
HomeSample Page

Sample Page Title


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.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments