Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

删除被引用的资源后报错,如何定位prefab中引用位置?

$
0
0

@crossingfire 写道:

mac下cocos creator 2.2.1版本
删除某些图集中用不到的图片后,游戏报错**Uncaught Download text failed**,具体错误信息为:

Simulator: ERROR: Uncaught Download text failed: /Users/xxx/ProjectName/library/imports/83/83573c3f-e269-44ec-91e7-60f4fd8c8819.json, location: src/cocos2d-jsb.js:0:0
STACK:
[0]anonymous@src/cocos2d-jsb.js:9184
[1]anonymous@src/cocos2d-jsb.js:35173
[2]fireTimeout@jsb-adapter/jsb-builtin.js:2038
[3]tick@jsb-adapter/jsb-builtin.js:2000
[ERROR] (/Users/nantas/jenkins/workspace/Creator_2D/cocos2d-x-lite/mac/cocos2d-x-lite/cocos/scripting/js-bindings/jswrapper/v8/Object.cpp, 562): Invoking function (0x7fbe7122ef70) failed!
    at HTMLElement.print-simulator-log (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor/builtin/scene/panel/messages/scene.js:1:1608)
    at Object.e._dispatch (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor-framework/lib/renderer/panel.js:1:1876)
    at EventEmitter.<anonymous> (/Applications/CocosCreator.app/Contents/Resources/app.asar/editor-framework/lib/renderer/ipc.js:1:2952)
    at EventEmitter.emit (events.js:194:13)

但从这些报错信息中,无法得知具体哪个prefab引用了哪张不存在的图片导致的,因此想要查找问题,就得手动挨个检查prefab中的节点;当同时删除多张图片、游戏中存在大量prefab时,查找起来特别麻烦。

请问大家都是怎么解决这个问题的?有没有办法方便快速地定位到哪个prefab引用了哪张不存在的图

帖子: 3

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>