howdy, when i exploit cocos creator editor’s cc.Button Element, and that i wish to relate the button’s clickevent by editor. nonetheless in editor, arrow operate in my script should not regonized.
hope editor can present the arrowFunction too!
HI, i’m not an professional of CC, however i feel CC doesn’t present to you your technique as a result of the arrow operate is actually considerated a “lambda operate”, a operate with no identify that you just set as worth to a variable or property (that is your case i feel).
A query, why do you wish to use an arrow operate utilized to a property as an alternative of a category technique? There aren’t distinction, solely a mode of coding, that is what i knew.
i’m not certain precisely concerning the motive, however the phenomenon i met was that i can’t get this
when i don’t use lambda operate
in script