cc.assetManager.loadRemote("http://127.0.0.1:8080/image/bg.astc", { ext: ".astc" }, (err, texture2D) => {
let spriteFrame = new cc.SpriteFrame();
spriteFrame.setTexture(texture2D);
//this.sprite.spriteFrame = spriteFrame;
});
以上是简要描述,首先是这个astc是非creator项目内(项目内的astc没有任何问题),然后是如果这种写法不行的话, 应该要怎么写,或者说,非项目内的astc远程加载是无法使用的。
@jare @shrinktofit @panda