[LayaAirIDE 2.0]Unity插件导出模型
使用2.3.0版本Unity插件导出,在laya2.0.1工程上加载可以显示,在laya2.3.0的工程上报错
附件包含导出的资源文件,麻烦帮忙看下
Laya.Sprite3D.load("res/LayaScene_Model_71008/Model_71008.lh", Laya.Handler.create(null, function(sprite:Laya.Sprite3D):void {
scene.addChild(sprite);
sprite.transform.localScale = new Laya.Vector3(0.2, 0.2, 0.2);
}));
报错信息
Uncaught TypeError: Cannot read property 'transform' of undefined
at SkinnedMeshRenderer._computeSubSkinnedData (laya.d3.js:24876)
at SkinnedMeshRenderer._computeSkinnedData (laya.d3.js:24857)
at SkinnedMeshRenderer._renderUpdate (laya.d3.js:24955)
at RenderElement._render (laya.d3.js:13807)
at RenderQueue._render (laya.d3.js:23353)
at Scene3D._renderScene (laya.d3.js:24583)
at Camera.render (laya.d3.js:13641)
at Scene3D.renderSubmit (laya.d3.js:24757)
at Context.submitElement (laya.core.js:9341)
at Context.flush (laya.core.js:9347)
附件包含导出的资源文件,麻烦帮忙看下
Laya.Sprite3D.load("res/LayaScene_Model_71008/Model_71008.lh", Laya.Handler.create(null, function(sprite:Laya.Sprite3D):void {
scene.addChild(sprite);
sprite.transform.localScale = new Laya.Vector3(0.2, 0.2, 0.2);
}));
报错信息
Uncaught TypeError: Cannot read property 'transform' of undefined
at SkinnedMeshRenderer._computeSubSkinnedData (laya.d3.js:24876)
at SkinnedMeshRenderer._computeSkinnedData (laya.d3.js:24857)
at SkinnedMeshRenderer._renderUpdate (laya.d3.js:24955)
at RenderElement._render (laya.d3.js:13807)
at RenderQueue._render (laya.d3.js:23353)
at Scene3D._renderScene (laya.d3.js:24583)
at Camera.render (laya.d3.js:13641)
at Scene3D.renderSubmit (laya.d3.js:24757)
at Context.submitElement (laya.core.js:9341)
at Context.flush (laya.core.js:9347)
没有找到相关结果
已邀请:
要回复问题请先登录
3 个回复
139*****755
赞同来自:
Aar0n
赞同来自:
Aar0n
赞同来自: