[]layaair ide 2.0.0 beta2 读取.lh文件报错
用unity 2018.2.12f1 fbxtools插件版本1.7.16beta 导出的文件夹放到bin目录, 用Laya.loader.create读取.lh文件报错,
laya.d3.js:15158 Uncaught TypeError: Cannot read property 'props' of undefinedat Function.Laya3D._getSprite3DHierarchyInnerUrls (laya.d3.js:15158)
at Loader.Laya3D._onHierarchylhLoaded (laya.d3.js:15252)
at EventHandler.__proto.runWith (laya.core.js:1127)
at Loader.__proto.event (laya.core.js:883)
at Loader.__proto.complete (laya.core.js:14959)
at Loader.__proto.onLoaded (laya.core.js:14927)
at EventHandler.__proto.runWith (laya.core.js:1126)
at HttpRequest.__proto.event (laya.core.js:883)
at HttpRequest.__proto.complete (laya.core.js:14601)
at HttpRequest.__proto._onLoad (laya.core.js:14565)
laya.d3.js:15158 Uncaught TypeError: Cannot read property 'props' of undefinedat Function.Laya3D._getSprite3DHierarchyInnerUrls (laya.d3.js:15158)
at Loader.Laya3D._onHierarchylhLoaded (laya.d3.js:15252)
at EventHandler.__proto.runWith (laya.core.js:1127)
at Loader.__proto.event (laya.core.js:883)
at Loader.__proto.complete (laya.core.js:14959)
at Loader.__proto.onLoaded (laya.core.js:14927)
at EventHandler.__proto.runWith (laya.core.js:1126)
at HttpRequest.__proto.event (laya.core.js:883)
at HttpRequest.__proto.complete (laya.core.js:14601)
at HttpRequest.__proto._onLoad (laya.core.js:14565)
没有找到相关结果
已邀请:
要回复问题请先登录
3 个回复
130*****330
赞同来自:
"type":"Sprite3D",
"props":{
"name":"role"
},
"customProps":{
"translate":[
0,
0,
0
],
"rotation":[
0,
0,
0,
-1
],
"scale":[
1,
1,
1
]
},
"child":[
{
"type":"Sprite3D",
"props":{
"isStatic":false,
"name":"jacket_default"
},
"customProps":{
"layer":0,
"translate":[
0,
0,
0
],
"rotation":[
0,
1,
0,
0
],
"scale":[
1,
1,
1
]
},
"components":{},
"child":[
{
"type":"MeshSprite3D",
"props":{
"isStatic":false,
"name":"AJ_PS_Health"
},
"customProps":{
"layer":0,
"translate":[
0,
0,
0
],
"rotation":[
-1.110223E-16,
0,
0,
-1
],
"scale":[
1,
1,
1
],
"materials":[
{
"type":"Laya.StandardMaterial",
"path":"Assets/mainRole/archer/fashion/Materials/AJ_PS_Health.lmat"
}
],
"meshPath":"Assets/mainRole/archer/fashion/jacket_default-AJ_PS_Health.lm"
},
"components":{},
"child":[]
}
]
},
{
"type":"Sprite3D",
"props":{
"isStatic":false,
"name":"head_default"
},
"customProps":{
"layer":0,
"translate":[
0,
0,
0
],
"rotation":[
0,
1,
0,
0
],
"scale":[
1,
1,
1
]
},
"components":{},
"child":[
{
"type":"MeshSprite3D",
"props":{
"isStatic":false,
"name":"AJ_PS_head"
},
"customProps":{
"layer":0,
"translate":[
0,
0.001225281,
0
],
"rotation":[
-1.110223E-16,
0,
0,
-1
],
"scale":[
1,
1,
1
],
"materials":[
{
"type":"Laya.StandardMaterial",
"path":"Assets/mainRole/archer/fashion/Materials/AJ_PS_head.lmat"
}
],
"meshPath":"Assets/mainRole/archer/fashion/head_default-AJ_PS_head.lm"
},
"components":{},
"child":[]
}
]
},
{
"type":"Camera",
"props":{
"isStatic":false,
"name":"Camera",
"clearFlag":1,
"orthographic":false,
"fieldOfView":60,
"nearPlane":0.3,
"farPlane":1000
},
"customProps":{
"layer":0,
"translate":[
0,
1,
-3.09
],
"rotation":[
0,
1,
0,
0
],
"scale":[
1,
1,
1
],
"viewport":[
0,
0,
1,
1
],
"clearColor":[
0.1921569,
0.3019608,
0.4745098,
0
]
},
"components":{},
"child":[]
}
]
}
附上导出的lh文件
130*****330
赞同来自:
不知道为什么这个data为null
130*****330
赞同来自: