【发布时间】:2020-10-30 21:25:14
【问题描述】:
当我尝试使用cc.resources.load(arg1, arg2) 时,我收到此错误:
Uncaught (in promise) TypeError: Cannot read property 'load' of undefined
据我所知,它是一个内置的 Cocos Creator 类,documentation 本身说要使用它。当我尝试调用cc.log(cc.resources) 时,它会在控制台中显示undefined。我的项目中存在一个名为“resources”的文件夹,它不是空的。
【问题讨论】:
标签: javascript cocos2d-js cocoscreator