Sorry, the component of 'game_root' which with an index of 1 is corrupted! It has been removed.

关键词

Cocos creator 2.4.3 JavaScript 微信小游戏

背景

运行cocos creator项目时突然报错。

报错

Sorry, the component of 'game_root' which with an index of 1 is corrupted! It has been removed.

解决

  • 原因:我运行项目的时候是在prefab预制体编辑器界面运行的,然后报错了。
  • 解决:只需要回到场景scene中再点击运行即可。

参考

Sorry, the component of entity "EnemyMng" which with an index of 0 is corrupted! It has been removed.

posted @ 2021-02-24 00:33  向来萧瑟也无畏  阅读(351)  评论(0编辑  收藏  举报