[]加载学堂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.
 
已邀请:

道道

赞同来自:

是不是学堂中的资源结构版本太老的原因?

要回复问题请先

商务合作
商务合作