创建官方示例3D
Laya.Sprite3D.load("res/threeDimen/skinModel/Zombie/Zombie.lh", Laya.Handler.create(this, function(zombie:Laya.Sprite3D):void {
scene.addChild(zombie);
this.zombieAnimator = (zombie.getChildAt(0) as Laya.Sprite3D).getComponent(Laya.Animator) as Laya.Animator;//获取Animator动画组件
this.zombieAnimator.on(Laya.Event.COMPLETE, this, this.onAniComplete);
this.loadUI();
}));
附件:
Test.rar