Home Game Development Why cannot we use specific override on Component callbacks ? (3.6) – Cocos Creator

Why cannot we use specific override on Component callbacks ? (3.6) – Cocos Creator

0
Why cannot we use specific override on Component callbacks ? (3.6) – Cocos Creator

[ad_1]

I wish to allow the noImplicitOverride rule on a cocos 3.6 undertaking.

Using override key phrase on Component callbacks like onLoad, begin, replace, and so forth. set off an error at run time : ‘Unexpected identifier ‘onLoad’errorInfo.stack ? ‘/n SyntaxError: Unexpected identifier ‘onLoad’’ : ‘’ ’

Why is that ? And is there a strategy to repair it ?

This can be supported in v3.7 or later, confer with:

1 Like

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here