[]加载学堂3D角色资源,播放动画异常
//创建男角色模型
this.roleMan = new Laya.MeshSprite3D(Laya.Mesh.load("man/hero-mon_1129.lm"));
this.roleMan.transform.localScale = new Laya.Vector3(0.01,0.01,0.01);
this.roleMan.transform.localPosition = new Laya.Vector3(0,-0.5,-3);
this.scene.addChild(this.roleMan);
//给男角色添加贴图动画
var manAni:Laya.SkinAnimations = this.roleMan.addComponent(Laya.SkinAnimations) as Laya.SkinAnimations;
manAni.url="man/hero.ani";
manAni.player.play(); // play函数调用后出错。!!!
Warning: discard property,please use templet property instead.
要回复问题请先登录
1 个回复
道道
赞同来自: