1、在unity中 animations中,拖入对应的对象到 scene
2、把对应的动画文件拖入对象
3、部分纹理偏暗
调整下unity中的颜色亮度
4、在laya中导入,注意文件目录
(1)
this.resource = [
"res/LayaScene_SampleScene/Conventional/Chick_Animations.lh"
]
Laya.loader.create(this.resource, Laya.Handler.create(this, this.onPreLoadFinish));
(2)使用动画
var playerSp = Laya.Loader.getRes("res/LayaScene_SampleScene/Conventional/Chick_Animations.lh")
this.player = this._scene.addChild(playerSp);
this.player.transform.position = new Laya.Vector3(0,1,-3)
this.ani= this.player.getComponent(Laya.Animator);
this.ani.play("Swim/Fly");