[]unity里导出的骨骼动画无法读取

在unity中将骨骼动画fbx文件导出laya中,读取时报错
 

__proto._getAvatarOwnersByClip=function(clipIndex){
var frameNodes=this._clips[clipIndex]._nodes;
var frameNodesCount=frameNodes.length;
 
其中frameNodes为空
 
附件是骨骼动画fbx文件
 
Unity 5.6.0f3  laya1.7.13
已邀请:

qian

赞同来自:

我这边可以正常读取啊

TIM图片20180117110924.png

 

renfei231

赞同来自:

请问unity的导出插件是哪里下的?
是不是这个地址:http://ldc.layabox.com/download/tools/LayaAir3DConvertTools.zip
另外你的laya是什么版本?

renfei231

赞同来自:

我的插件是1.7.14
但是怎么读不上来
附件是导出来的模型,你看看能不能读取
截图为unity的插件的参数,你看下有没有错误
 
读取代码:
  
Laya.loader.create("res/1.lh",Handler.create(this,onModelOK),null,Sprite3D);

private function onModelOK():void
        {
             //添加3D场景
             var scene:Scene = new Scene();
             Laya.stage.addChild(scene);
             //添加照相机
                var camera:Camera = (scene.addChild(new Camera( 0, 0.1, 100))) as Camera;
                camera.transform.translate(new Vector3(0, 3, 3));
                camera.transform.rotate(new Vector3( -30, 0, 0), true, false);
                camera.clearColor = null;
                //添加方向光
                var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight;
                directionLight.color = new Vector3(0.6, 0.6, 0.6);
                directionLight.direction = new Vector3(1, -1, 0);
                var plane:Sprite3D = scene.addChild(Sprite3D.load("res/threeDimen/skinModel/Zombie/new/Plane.lh")) as Sprite3D;
             //添加蒙皮动画角色模型
             var role3D:Sprite3D=Laya.loader.getRes("res/1.lh");
             //加载到场景
             scene.addChild(role3D);
             role3D.once(Event.HIERARCHY_LOADED, this, function():void{
                //获取Animator动画组件
                zombieAnimator = (role3D.getChildAt(0) as Sprite3D).getComponentByType(Animator) as Animator;
                zombieAnimator.clip.islooping = true;               
            });
        }
 

要回复问题请先

商务合作
商务合作