[]用Loader加载完atlas,然后使用animation播放问题
this._load = new Laya.Loader()
this._load.on(Laya.Event.ERROR, this, this.onError);
this._load.on(Laya.Event.COMPLETE, this, this.loadComplete);
this._load.load(this._data.url, Laya.Loader.ATLAS, true);
加载完成后
this._ani = new Animation();
this._ani.loadImages(这里传入解析好的urls) 会提示重复加载
为什么我都加载完了 还需要用ani的loadImages 有没有别的办法
我不想用animation.loadAtlas这个方法 这个方法检测不到加载失败
this._load.on(Laya.Event.ERROR, this, this.onError);
this._load.on(Laya.Event.COMPLETE, this, this.loadComplete);
this._load.load(this._data.url, Laya.Loader.ATLAS, true);
加载完成后
this._ani = new Animation();
this._ani.loadImages(这里传入解析好的urls) 会提示重复加载
为什么我都加载完了 还需要用ani的loadImages 有没有别的办法
我不想用animation.loadAtlas这个方法 这个方法检测不到加载失败
要回复问题请先登录
1 个回复
Laya_XS
赞同来自: