-
Creator 版本:3.4.2
-
目标平台: android
-
重现方式:1.远程bundle里面有龙骨动画,加载,释放,就出现了
2.反复加载 释放hash找不到,这个没图! -
首个报错:
let bundle = assetManager.getBundle(bundle_name);
if (bundle) {
bundle.releaseAll();
assetManager.removeBundle(bundle);
}
-
之前哪个版本是正常的:
-
手机型号:
-
手机浏览器:
-
编辑器操作系统:
-
重现概率: 100%
我知道在jsb-engine.js里面可以改,
我想知道在CocosDashboard\resources.editors\Creator\3.4.2\resources\resources\3d\engine-native
下面怎么改
这个是解决反复加载释放找不到hash的,路径如下
D:\CocosDashboard\resources.editors\Creator\3.4.2\resources\resources\3d\engine\cocos\2d\renderer\batcher-2d
if (frame && frame.isValid) {
this._currTexture = frame.getGFXTexture();
this._currSampler = frame.getGFXSampler();
this._currTextureHash = frame.getHash();
this._currSamplerHash = this._currSampler.hash;
} else {
this._currTexture = null;
this._currSampler = null;
this._currTextureHash = 0;
this._currSamplerHash = 0;
}
我想在如下路径修改,怎么改
D:\CocosDashboard\resources.editors\Creator\3.4.2\resources\resources\3d\engine-native
解决了吗?我也遇到了
有其他组件引用了资源, 小游戏最好把资源独立
