首页 > 其他 > 详细

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

时间:2021-02-24 10:13:03      阅读:80      评论:0      收藏:0      [点我收藏+]

关键词

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.

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

原文:https://www.cnblogs.com/zyaire/p/14439037.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!