[LayaAir 2.0]提示资源重复加载

 
let swimpoorpath01="Comp/yard_swimpool01.png";
let swimpoorpath02="Comp/yard_swimpool02.png"; 
export default class Yard extends Laya.Sprite {
private swimpoolani:Laya.Animation; 
constructor() { super();
this.swimpoolani=new Laya.Animation();
//this.init();
this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded));
 
}
private onLoaded():void{
 
Laya.Animation.createFrames([swimpoorpath01,swimpoorpath02],"swimpoolani");
Laya.stage.addChild(this.swimpoolani);
this.swimpoolani.play(0,true,"swimpoolani");
this.swimpoolani.interval = 500;        
}
 
 
onEnable(): void {

onDisable(): void {
}
}
 
 
 
esources already exist,is repeated loading: D:/reserch/H5/Petfriend/code/Petfriend%20v1.01/Petfriend/bin/Comp/yard_mailbox.png
laya.core.js:23676
Resources already exist,is repeated loading: D:/reserch/H5/Petfriend/code/Petfriend%20v1.01/Petfriend/bin/Comp/yard_path.png
laya.core.js:23676
Resources already exist,is repeated loading: D:/reserch/H5/Petfriend/code/Petfriend%20v1.01/Petfriend/bin/Comp/yard_potting01.png
laya.core.js:23676
Resources already exist,is repeated loading: D:/reserch/H5/Petfriend/code/Petfriend%20v1.01/Petfriend/bin/Comp/yard_swimpool01.png
laya.core.js:23676
Resources already exist,is repeated loading: D:/reserch/H5/Petfriend/code/Petfriend%20v1.01/Petfriend/bin/Comp/yard_swimpool02.png
laya.core.js:23676
Resources already exist,is repeated loading: D:/reserch/H5/Petfriend/code/Petfriend%20v1.01/Petfriend/bin/Comp/yard_swing.png
laya.core.js:23676
Resources already exist,is repeated loading: D:/reserch/H5/Petfriend/code/Petfriend%20v1.01/Petfriend/bin/Comp/yard_tree.png
laya.core.js:23676
Resources already exist,is repeated loading: D:/reserch/H5/Petfriend/code/Petfriend%20v1.01/Petfriend/bin/Comp/yard_treestump01.png
laya.core.js:23676
Resources already exist,is repeated loading: D:/reserch/H5/Petfriend/code/Petfriend%20v1.01/Petfriend/bin/Comp/yard_treestump02.png
laya.core.js:23676
Resources already exist,is repeated loading: D:/reserch/H5/Petfriend/code/Petfriend%20v1.01/Petfriend/bin/Comp/yard_umberalla.png
laya.core.js:23676
 
 
无标题.png
已邀请:

正人君子

赞同来自:

同问

小董

赞同来自:

同问

Giealxon

赞同来自:

【滑稽】你加載之前看看内存紋理存在不嘛,存在的話就不走加載

kura

赞同来自:

  已解决0-0

要回复问题请先

商务合作
商务合作