[0]报无法找到资源,未升级ide之前不报错
问题如图所示,资源路径正确,就是报找不到
private createAniTemplate(name: string, len: number = 8): void {
let aniFrames: Array<string> = [];
for (let i: number = 0; i < len; i++) {
aniFrames.push("resources/UI/role/atlasAni2/139x/" + name + i + ".png");
}
Laya.Animation.createFrames(aniFrames, name);
}
private createAniTemplate(name: string, len: number = 8): void {
let aniFrames: Array<string> = [];
for (let i: number = 0; i < len; i++) {
aniFrames.push("resources/UI/role/atlasAni2/139x/" + name + i + ".png");
}
Laya.Animation.createFrames(aniFrames, name);
}
没有找到相关结果
已邀请:
2 个回复
layabox
赞同来自:
小高
赞同来自: