[LayaNative 2.0]龙骨动画demo
var skeleton = new Laya.Skeleton();
skeleton.pos(100, 500);
skeleton.zOrder = 1;
skeleton.load("dragonBones/chicken/chicken.sk", Laya.Handler.create(this, (e) => {
console.log(e);
let num = skeleton.getAnimNum()
let name = skeleton.getAniNameByIndex(num - 1);
skeleton.play(name)
}));
this.owner.addChild(skeleton);
skeleton.pos(100, 500);
skeleton.zOrder = 1;
skeleton.load("dragonBones/chicken/chicken.sk", Laya.Handler.create(this, (e) => {
console.log(e);
let num = skeleton.getAnimNum()
let name = skeleton.getAniNameByIndex(num - 1);
skeleton.play(name)
}));
this.owner.addChild(skeleton);
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
laozhou
赞同来自: