[]图集动画没有显示
Laya.init(1600, 1400, Laya.WebGL);
var AniConfPath = 'res/atlas/cloud.json';
Laya.loader.load(AniConfPath, Laya.Handler.create(this, this.createAnimation), null, Laya.loader.ATLAS);
function createAnimation() {
var ani = new Laya.Animation();
ani.loadAtlas(AniConfPath);
ani.interval = 30;
ani.index = 1;
ani.play();
Laya.stage.addChild(ani);
}
var AniConfPath = 'res/atlas/cloud.json';
Laya.loader.load(AniConfPath, Laya.Handler.create(this, this.createAnimation), null, Laya.loader.ATLAS);
function createAnimation() {
var ani = new Laya.Animation();
ani.loadAtlas(AniConfPath);
ani.interval = 30;
ani.index = 1;
ani.play();
Laya.stage.addChild(ani);
}
没有找到相关结果
已邀请:
要回复问题请先登录
2 个回复
scorpio
赞同来自:
Monica - 知识达人
赞同来自:
最后边的L是大写,应该是Laya.Loader.ATLAS