[]LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16)
Laya UnityPlugin 使用须知 :
跨平台支持,支持Windows和MacOS操作系统,Unity版本不能低于5.5.2,必须配合官方最新版LayaAir引擎使用,现UnityPlugin 支持导出网格模型,静态场景,蒙皮动画,新版粒子,地形
也就是Unity中包含以下组件的节点:
1. Transform 2. MeshFilter 3. MeshRenderer 4. SkinnedMeshRenderer
5. Animation 6. Animator (新) 7. Terrain 8. ParticleSystem(使用须知)
关于导出工具的使用,请参考官网3D教学视频,*由于教学录制时间过早,其中接口已经有所变动,只能作为使用工具的参考。
关于导出资源在layaAir中的加载使用,请参考官方3D示例。
unity2017以后的版本,由于unity中API结构调整,导入插件时必须更新API(I Made a Backup. Go Ahead!)。否则会出现部分工具所使用接口找不到的情况。
导出文件说明:
ls --- 场景文件: Json文件,包含场景中所有节点的数据信息,包含光照贴图信息
lh --- 层级文件: Json文件,包含场景中所有节点的数据信息,不包含光照贴图信息
lt --- 地形文件: Json文件,包含地形中的数据信息
lm --- 网格文件: 二进制文件,包含模型所有顶点的数据信息
lmat --- 材质文件: Json文件,包含光照,贴图,渲染模式等基本材质信息
lsani --- 蒙皮动画文件:二进制文件,包含骨骼动画帧率信息
lrani --- 刚体动画文件:二进制文件,包含刚体动画帧率信息
lav --- 新版动画节点文件:Json文件,只包含Animator组件下节点的数据信息
lani --- 新版动画文件:二进制文件,包含Animator动画帧率信息
---------------------------------------------------------------------------------------------------------------------------------------
导出场景:
导出精灵:
----------------------------------------------------------------------------------------------------------------------------------------
Laya UnityPlugin 功能介绍:
Mesh Setting --- 网格设置
Ignore Vertices Tangent 忽略顶点切线信息,可减小lm文件大小
Ignore Vertices Color 忽略顶点颜色信息,可减小lm文件大小
Texture Setting --- 贴图设置
Original Texture Type --- 需要转换格式的原始纹理类型
Non-PNG|JPG 非png| jpg 格式贴图,现在支持 tga,psd,gif,tif,bmp,exr格式
PNG 原始场景中所用png格式资源
JPG 原始场景中所用jpg格式资源
LightMap 光照贴图,(只有选择Scene才会有),建议手动ps处理
Target Texture Type --- 转换目标纹理类型
PNG 把需要转换的纹理贴图全部转换为png格式
JPG 把需要转换的纹理贴图全部转换为jpg格式,Quality:转换为jpg附带压缩功能,可选择压缩质量
Animation Setting --- 动画设置
Optimize Bones 删除动画中无用骨骼,只删除不影响骨骼动画播放的无用骨骼,如果要做挂点,谨慎选择
CompressLsani 暂时无用,开发中,压缩骨骼动画数据,减小文件大小
Terrain Setting --- 地形设置
Convert Terrain To Mesh 是否导出地形为网格模型,会导出unity中场景为正常网格模型使用;否则,为正常地形
Resolution 导出为网格模型的精度,精度越高,面数越多,可能造成drawcall越多
GameObject Setting --- 节点设置
Ignore Null Game Objects 导出时忽略空节点,暂不支持节点也记作空节点,如UI等 ,可减少精灵数
Ignore Not Active Game Objects 导出时忽略在unity场景中未激活的节点
Optimize Game Objects 导出时从unity场景中第一级子节点起拍平树形结构,删除所有无用或者未激活节点,可最大程度减少精灵数量
Batch Make The First Level Game Objects 批量导出(选择sprite3d才会有)批量导出场景中所有一级节点
Other Setting --- 其他设置
Cover Original Export Files 导出时覆盖原始导出文件
Customize Export Root Directory Name 自定义导出文件夹名称
Automatically Save The Configuration 导出时自动保存当前配置
Browse 选择导出目录
Clear 清空当前配置
Revert 从配置表中读取已保存配置
Save 保存当前配置
LayaAir Export 导出资源
LayaAir Run 直接运行该场景
---------------------------------------------------------------------------------------------------------------------------------------
Animator 动画支持(可以制作骨骼动画,刚体动画,材质动画等复合动画)
现支持的属性
骨骼动画:*暂不支持unity中自己创建的Humanoid类型的骨骼动画*,Animator组件中的Avatar不能为空。
材质动画/刚体动画:只支持对物理的旋转平移缩放属性,材质的基本属性,不支持组件跟节点的开启/失效。如果开发者对新的属性有要求,请跟帖反馈,并提供资源文件,我们会根据情况添加。Animator组件中的Avatar必须为空。
LayaAirRun使用须知:
1.必须安装Node环境,express拓展模块(工具内置了express,如果无法正常使用,请自行安装);
2.场景中确保有一个照相机,自行调整照相机位置,角度,最终layaAir运行效果会与Unity运行结果保持一致。
---------------------------------------------------------------------------------------------------------------------------------------
此贴随unity Plugin版本同步更新,如果大家在使用过程出,出现任何问题,欢迎跟帖提问。如有Bug或者对该插件的优化建议,请第一时间反馈,谢谢!
LayaAir UnityPlugin最新版插件 见附件
跨平台支持,支持Windows和MacOS操作系统,Unity版本不能低于5.5.2,必须配合官方最新版LayaAir引擎使用,现UnityPlugin 支持导出网格模型,静态场景,蒙皮动画,新版粒子,地形
也就是Unity中包含以下组件的节点:
1. Transform 2. MeshFilter 3. MeshRenderer 4. SkinnedMeshRenderer
5. Animation 6. Animator (新) 7. Terrain 8. ParticleSystem(使用须知)
关于导出工具的使用,请参考官网3D教学视频,*由于教学录制时间过早,其中接口已经有所变动,只能作为使用工具的参考。
关于导出资源在layaAir中的加载使用,请参考官方3D示例。
unity2017以后的版本,由于unity中API结构调整,导入插件时必须更新API(I Made a Backup. Go Ahead!)。否则会出现部分工具所使用接口找不到的情况。
导出文件说明:
ls --- 场景文件: Json文件,包含场景中所有节点的数据信息,包含光照贴图信息
lh --- 层级文件: Json文件,包含场景中所有节点的数据信息,不包含光照贴图信息
lt --- 地形文件: Json文件,包含地形中的数据信息
lm --- 网格文件: 二进制文件,包含模型所有顶点的数据信息
lmat --- 材质文件: Json文件,包含光照,贴图,渲染模式等基本材质信息
lsani --- 蒙皮动画文件:二进制文件,包含骨骼动画帧率信息
lrani --- 刚体动画文件:二进制文件,包含刚体动画帧率信息
lav --- 新版动画节点文件:Json文件,只包含Animator组件下节点的数据信息
lani --- 新版动画文件:二进制文件,包含Animator动画帧率信息
---------------------------------------------------------------------------------------------------------------------------------------
导出场景:
导出精灵:
----------------------------------------------------------------------------------------------------------------------------------------
Laya UnityPlugin 功能介绍:
Mesh Setting --- 网格设置
Ignore Vertices Tangent 忽略顶点切线信息,可减小lm文件大小
Ignore Vertices Color 忽略顶点颜色信息,可减小lm文件大小
Texture Setting --- 贴图设置
Original Texture Type --- 需要转换格式的原始纹理类型
Non-PNG|JPG 非png| jpg 格式贴图,现在支持 tga,psd,gif,tif,bmp,exr格式
PNG 原始场景中所用png格式资源
JPG 原始场景中所用jpg格式资源
LightMap 光照贴图,(只有选择Scene才会有),建议手动ps处理
Target Texture Type --- 转换目标纹理类型
PNG 把需要转换的纹理贴图全部转换为png格式
JPG 把需要转换的纹理贴图全部转换为jpg格式,Quality:转换为jpg附带压缩功能,可选择压缩质量
Animation Setting --- 动画设置
Optimize Bones 删除动画中无用骨骼,只删除不影响骨骼动画播放的无用骨骼,如果要做挂点,谨慎选择
CompressLsani 暂时无用,开发中,压缩骨骼动画数据,减小文件大小
Terrain Setting --- 地形设置
Convert Terrain To Mesh 是否导出地形为网格模型,会导出unity中场景为正常网格模型使用;否则,为正常地形
Resolution 导出为网格模型的精度,精度越高,面数越多,可能造成drawcall越多
GameObject Setting --- 节点设置
Ignore Null Game Objects 导出时忽略空节点,暂不支持节点也记作空节点,如UI等 ,可减少精灵数
Ignore Not Active Game Objects 导出时忽略在unity场景中未激活的节点
Optimize Game Objects 导出时从unity场景中第一级子节点起拍平树形结构,删除所有无用或者未激活节点,可最大程度减少精灵数量
Batch Make The First Level Game Objects 批量导出(选择sprite3d才会有)批量导出场景中所有一级节点
Other Setting --- 其他设置
Cover Original Export Files 导出时覆盖原始导出文件
Customize Export Root Directory Name 自定义导出文件夹名称
Automatically Save The Configuration 导出时自动保存当前配置
Browse 选择导出目录
Clear 清空当前配置
Revert 从配置表中读取已保存配置
Save 保存当前配置
LayaAir Export 导出资源
LayaAir Run 直接运行该场景
---------------------------------------------------------------------------------------------------------------------------------------
Animator 动画支持(可以制作骨骼动画,刚体动画,材质动画等复合动画)
现支持的属性
骨骼动画:*暂不支持unity中自己创建的Humanoid类型的骨骼动画*,Animator组件中的Avatar不能为空。
材质动画/刚体动画:只支持对物理的旋转平移缩放属性,材质的基本属性,不支持组件跟节点的开启/失效。如果开发者对新的属性有要求,请跟帖反馈,并提供资源文件,我们会根据情况添加。Animator组件中的Avatar必须为空。
LayaAirRun使用须知:
1.必须安装Node环境,express拓展模块(工具内置了express,如果无法正常使用,请自行安装);
2.场景中确保有一个照相机,自行调整照相机位置,角度,最终layaAir运行效果会与Unity运行结果保持一致。
---------------------------------------------------------------------------------------------------------------------------------------
此贴随unity Plugin版本同步更新,如果大家在使用过程出,出现任何问题,欢迎跟帖提问。如有Bug或者对该插件的优化建议,请第一时间反馈,谢谢!
LayaAir UnityPlugin最新版插件 见附件
没有找到相关结果
已邀请:
要回复问题请先登录
93 个回复
wglj2014
赞同来自: qiugaofeng 、大饼干 、WEI
cuixueying
赞同来自: 150*****372
150*****372
赞同来自: layabox
vae
赞同来自: 134*****126
at Function.Laya3D._getSprite3DHierarchyInnerUrls (libs/laya.d3.js:1837)
at Loader.Laya3D._onHierarchylhLoaded (libs/laya.d3.js:1933)
at EventHandler.__proto.runWith (libs/laya.core.js:1628)
at Loader.__proto.event (libs/laya.core.js:1384)
at Loader.__proto.complete (libs/laya.core.js:16209)
at Loader.__proto.onLoaded (libs/laya.core.js:16157)
at EventHandler.__proto.runWith (libs/laya.core.js:1627)
at HttpRequest.__proto.event (libs/laya.core.js:1384)
at HttpRequest.__proto.complete (libs/laya.core.js:15788)
at HttpRequest.__proto._onLoad (libs/laya.core.js:15752) 加载场景的时候报了这个错误。不知道为什么?Unity版本是5.6,LayaIde的版本是2.1.0
ebaww
赞同来自:
zfree
赞同来自:
test那个scene的特效。
zyf598125795
赞同来自:
System.IO.Directory.CreateDirectoriesInternal (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:131)
System.IO.Directory.CreateDirectory (System.String path) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:96)
FileUtil.IOManager.saveFile (System.String fileName, .JSONObject node)
LayaExport.DataManager.saveLmData (.JSONObject obj, UnityEngine.GameObject gameObject, Int32 gameObjectType, Boolean statisticalCount)
LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, .JSONObject parentsChildNodes, Boolean statisticalCount)
LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, .JSONObject parentsChildNodes, Boolean statisticalCount)
LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, .JSONObject parentsChildNodes, Boolean statisticalCount)
LayaExport.DataManager.getSceneData (Boolean statisticalCount)
LayaExport.DataManager.getData ()
LayaPlugin.windowShowExportScene () (at Assets/LayaPlugin/LayaItem.cs:98)
LayaPlugin.OnGUI () (at Assets/LayaPlugin/LayaItem.cs:30)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:249)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:242)
UnityEditor.HostView.OnGUI () (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:76)
158*****155
赞同来自:
用之前的导出工具导出的..跟现在新导出的.可以同时存在吧
luowende
赞同来自:
[ts] Property 'load' does not exist on type 'typeof Scene'.
luowende
赞同来自:
jim606
赞同来自:
但是导出的文件夹里就一个文件:Samples.lh(只有1k),叶子那些图片也没导出来,这个是什么问题啊?
原文件在附件里;
jim606
赞同来自:
麻烦帮忙定位下问题。谢谢老师
150*****372
赞同来自:
sfsmmc
赞同来自:
但是导出时选择Sprite3D,通过Sprite3D.load()加载显示却是正常的是怎么回事?
unity插件是1.01
guowei422
赞同来自:
ebaww
赞同来自:
chunjine
赞同来自:
Uncaught SyntaxError: Unexpected token o in JSON at position 1
sfsmmc
赞同来自:
问题详情见:https://ask.layabox.com/question/5103
150*****372
赞同来自:
sfsmmc
赞同来自:
sfsmmc
赞同来自:
chunjine
赞同来自:
插件版本1.1.1, unity版本5.6.0f3报错,另外空节点不会导出,不管我选没选OptimizeGameObject 选项
zfree
赞同来自:
zfree
赞同来自:
插件版本 1.3.0
laya引擎版本 1.7.7
导出模型报错,格式感觉不对,1.3.0导出的lh已经没有loadPath字段了。
laya.d3.js:15905 Uncaught TypeError: Cannot read property 'loadPath' of undefined at Function.Laya3D._getSprite3DHierarchyInnerUrls (laya.d3.js:15905) at Function.Laya3D._getSprite3DHierarchyInnerUrls (laya.d3.js:15937) at Function.Laya3D._getSprite3DHierarchyInnerUrls (laya.d3.js:15937) at Loader.Laya3D._onHierarchylhLoaded (laya.d3.js:15955) at EventHandler.__proto.runWith (laya.core.js:683) at Loader.__proto.event (laya.core.js:461) at Loader.__proto.endLoad (laya.core.js:11887) at Function.Loader.checkNext (laya.core.js:11916) at Loader.__proto.complete (laya.core.js:11876) at Loader.__proto.onLoaded (laya.core.js:11865)
zfree
赞同来自:
插件版本 1.3.0
laya引擎版本 1.7.8beta
下面这个资源(场景在FightGame/FinalScene/MapScene/Newscene003)导出后有不少错误的地方,应该是材质shader的问题,能否给个目前支持的材质shader列表。麻烦看看。
zfree
赞同来自:
150*****372
赞同来自:
150*****372
赞同来自:
150*****372
赞同来自:
qq1981150053
赞同来自:
150*****372
赞同来自:
qq1981150053
赞同来自:
138*****175
赞同来自:
工具版本:最新版本:1.4.0
unity版本:Version 2017.1.0f3 (472613c02cf7) Personal
Fri, 23 Jun 2017 19:13:14 GMT
Branch: 2017.1/release
laya版本:1.7.9beta
138*****175
赞同来自:
138*****175
赞同来自:
138*****175
赞同来自:
jison_ailin
赞同来自:
a13121527420 - 哇啦哇啦哇啦!
赞同来自:
zfree
赞同来自:
我这边还是导出的时候 报错 MissingMethodException: Method not found: 'UnityEngine.Texture2D.EncodeToPNG'. 资源见unity.zip. 导出配置见截图
导出工具1.6.1,unity版本2017.1.1.f1
zyf598125795
赞同来自:
shf1993
赞同来自:
w317151752
赞同来自:
unitypackage LayaAirUnityPlugin 1.7.0.
LayaAir IDE 1.7.11
Error
"model file err,no this function:"+index+" "+blockName
请欧巴帮忙看看
资源已经上传
w317151752
赞同来自:
Error : add shader include file err
yinglei999
赞同来自:
使用插件进行3D人物的导出,因原生文件为dds文件,所以在导出的时候生成的是一个dds文件,测试了好多种组合无法生成png文件,请问,是不是必须使用png或jpg贴图的文件,还是说我哪里有设置错我。另外dds文件在引擎中提示LoaderManager:unknown file (xxxx) ) extension with: dds. 是否是引擎目前还暂不支持dds贴图文件,非常感谢。
yinglei999
赞同来自:
@asanwu
lg450334661
赞同来自:
mobile3Dbin
赞同来自:
某些角色的 Animator 中若Motion设定动作后,就一定会有这个错误。
KeyNotFoundException: The given key was not present in the dictionary.System.Collections.Generic.Dictionary`2[System.String,System.Collections.Generic.List`1[System.String]].get_Item (System.String key) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150)
LayaExport.DataManager.saveLaniData (UnityEngine.GameObject gameObject, .JSONObject obj)
LayaExport.DataManager.getAnimatorComponentData (UnityEngine.GameObject gameObject, .JSONObject component, System.Collections.Generic.List`1 linkSprite)
LayaExport.DataManager.getComponentsData (UnityEngine.GameObject gameObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath)
LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes, Boolean ignoreNullChild)
LayaExport.DataManager.getSceneNode ()
LayaExport.DataManager.saveData ()
LayaExport.DataManager.getData ()
LayaAir3D.exportResource (Boolean isDebug) (at Assets/LayaAir3D/LayaTool/LayaAir3D.cs:429)
LayaAir3D.OnGUI () (at Assets/LayaAir3D/LayaTool/LayaAir3D.cs:331)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
yinglei999
赞同来自:
附件解压后就是unitypackage
jison_ailin
赞同来自:
ryusing
赞同来自:
InvalidCastException: Cannot cast from source type to destination type.
LayaExport.DataManager.saveLmatFile (UnityEngine.Material material, System.String savePath, ComponentType type)
LayaExport.DataManager.getMeshRendererComponentData (UnityEngine.GameObject gameObject, .JSONObject customProps)
LayaExport.DataManager.getComponentsData (UnityEngine.GameObject gameObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath)
LayaExport.DataManager.getSimpleGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes)
LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes, Boolean ignoreNullChild)
LayaExport.DataManager.getSceneNode ()
LayaExport.DataManager.saveData ()
LayaExport.DataManager.getData ()
LayaAir3D.exportResource (Boolean isDebug) (at Assets/LayaAir3D/LayaTool/LayaAir3D.cs:429)
LayaAir3D.OnGUI () (at Assets/LayaAir3D/LayaTool/LayaAir3D.cs:331)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
shanonder
赞同来自:
·勾选 batch make the first level game objects ,导出文件能否不输出场景层信息或者添加忽略场景层的选项
UnityY
赞同来自:
fxlovelyy
赞同来自:
layali
赞同来自:
代码生成的h5页面
问:为什么车的贴图没有被导出。床的可以导出。
liufei122333
赞同来自:
remsmeru
赞同来自:
我用unity导出的*.lani文件中里面的version为什么总是LAYAANIMATION:02?
ImbaPanda
赞同来自:
ArgumentOutOfRangeException: Argument is out of range.
Parameter name: index
System.Collections.Generic.List`1[System.Double].get_Item (Int32 index) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/List.cs:633)
LayaExport.DataManager.saveLaniData (UnityEngine.GameObject gameObject, .JSONObject obj)
LayaExport.DataManager.getAnimatorComponentData (UnityEngine.GameObject gameObject, .JSONObject component, System.Collections.Generic.List`1 linkSprite)
LayaExport.DataManager.getComponentsData (UnityEngine.GameObject gameObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath)
LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes, Boolean ignoreNullChild)
LayaExport.DataManager.getComponentsData (UnityEngine.GameObject gameObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath)
LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes, Boolean ignoreNullChild)
LayaExport.DataManager.getSceneNode ()
LayaExport.DataManager.saveData ()
LayaExport.DataManager.getData ()
LayaAir3D.exportResource (Boolean isDebug) (at Assets/LayaAir3D/LayaTool/LayaAir3D.cs:435)
LayaAir3D.OnGUI () (at Assets/LayaAir3D/LayaTool/LayaAir3D.cs:337)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:295)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:288)
UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:255)
watsonsong
赞同来自:
jimukuan
赞同来自:
LayaExport.DataManager.getComponentsData (UnityEngine.GameObject gameObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath)
LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes, Boolean ignoreNullChild)
LayaExport.DataManager.getSceneNode ()
LayaExport.DataManager.saveData ()
LayaExport.DataManager.getData ()
LayaAir3D.exportResource (Boolean isDebug) (at Assets/LayaAir3D/LayaTool/LayaAir3D.cs:435)
LayaAir3D.OnGUI () (at Assets/LayaAir3D/LayaTool/LayaAir3D.cs:337)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:295)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:288)
UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:255)
jinfawu
赞同来自:
lianxueliushi
赞同来自:
问题:加载场景也好模型也好,加载的出来的模型和u3d里模型都有差别:运行效果如下:
u3d中如下:
麻烦了
zhuthesea
赞同来自:
layaair run 报错。
和warning过多有关系吗?
Animator Compoment must have a Controller!
LayaAirUnityPlugin_1.7_.16_
alla_zl
赞同来自:
ImbaPanda
赞同来自:
jjljj028
赞同来自:
p799411891
赞同来自:
这种什么情况??, 新手
LeoTang
赞同来自:
备注:我的Unity3D版本为2018.1.0f2
ImbaPanda
赞同来自:
luuren
赞同来自:
吴金林
赞同来自:
fuqingxiao
赞同来自:
LayaAir3D.OnGUI () (at Assets/LayaAir3D/LayaTool/LayaAir3D.cs:332)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:291)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:284)
UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:251)
你好,小伙儿
赞同来自:
Jcli
赞同来自:
后来重新美术导出了下 然后又变成这 模型虽然感觉没有破面 但是展示完全不一样如图3:
yzbgyc
赞同来自:
183*****288
赞同来自:
吴金林
赞同来自:
139*****152
赞同来自:
MinG
赞同来自:
天香食品 2区42 丁
赞同来自:
unity3d 2017.2
-- LayaAir3D UnityPlugin 1.7.16 beta --
新建初始场景,场景导出报错
MissingMethodException: Method not found: 'UnityEngine.Texture2D.EncodeToPNG'.
LayaExport.DataManager.getSceneNode ()
LayaExport.DataManager.saveData ()
LayaExport.DataManager.getData ()
LayaAir3D.exportResource (Boolean isDebug) (at Assets/LayaAir3D/LayaTool/LayaAir3D.cs:435)
LayaAir3D.OnGUI () (at Assets/LayaAir3D/LayaTool/LayaAir3D.cs:337)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:285)
UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:278)
UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:245)
黒Clover_L
赞同来自:
༺永洹༻
赞同来自:
System.Collections.Generic.Dictionary`2[System.String,System.Collections.Generic.List`1[System.String]].get_Item (System.String key) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150)
LayaExport.DataManager.saveLaniData (UnityEngine.GameObject gameObject, .JSONObject obj)
LayaExport.DataManager.getAnimatorComponentData (UnityEngine.GameObject gameObject, .JSONObject component, System.Collections.Generic.List`1 linkSprite)
LayaExport.DataManager.getComponentsData (UnityEngine.GameObject gameObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath)
LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes, Boolean ignoreNullChild)
LayaExport.DataManager.getSceneNode ()
LayaExport.DataManager.saveData ()
LayaExport.DataManager.getData ()
LayaAir3D.exportResource (Boolean isDebug) (at Assets/LayaAir3D/LayaTool/LayaAir3D.cs:434)
LayaAir3D.OnGUI () (at Assets/LayaAir3D/LayaTool/LayaAir3D.cs:337)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
这个问题搞了很久都没解决.
只要有设定动画一定报这个错.
插件版本是目前最新的,u3d为5.6
如果animator中删除动画导出马上正常.
只要有动画就不行.
༺永洹༻
赞同来自:
༺永洹༻
赞同来自:
这些参数都试过了,实在找不出原因了.要麻烦管理员.
152*****033
赞同来自:
strive
赞同来自:
Windows7Unity 5.6.5f1,
LayaAir 1.7.19(最新版)
LayaAir3D 1.7.16(最新版吧)
问题: 到出场景报错,是因为我有大量美术提交的tga贴图, 试着用LayaAir3D转换处理,勾选了:TextureSetting-Non-png|jpg 转png/jpg一直失败
Unsupported texture format - Texture2D::EncodeTo functions do not support compressed texture formats.
UnityEngine.Texture2D:EncodeToPNG()
LayaExport.DataManager:saveTextureFile(JSONObject, Texture2D, String, String, String)
LayaExport.DataManager:saveLayaParticleLmatData(Material, String)
LayaExport.DataManager:getParticleSystemComponentData(GameObject, JSONObject)
LayaExport.DataManager:getComponentsData(GameObject, JSONObject, JSONObject, Vector3, Quaternion, Vector3, String&)
LayaExport.DataManager:getGameObjectData(GameObject, String, JSONObject, Boolean)
LayaExport.DataManager:getGameObjectData(GameObject, String, JSONObject, Boolean)
LayaExport.DataManager:getGameObjectData(GameObject, String, JSONObject, Boolean)
LayaExport.DataManager:getGameObjectData(GameObject, String, JSONObject, Boolean)
LayaExport.DataManager:getGameObjectData(GameObject, String, JSONObject, Boolean)
LayaExport.DataManager:getGameObjectData(GameObject, String, JSONObject, Boolean)
LayaExport.DataManager:getSceneNode()
LayaExport.DataManager:saveData()
LayaExport.DataManager:getData()
LayaAir3D:exportResource(Boolean) (at Assets/LayaAir3D/LayaTool/LayaAir3D.cs:435)
LayaAir3D:OnGUI() (at Assets/LayaAir3D/LayaTool/LayaAir3D.cs:337)
UnityEditor.DockArea:OnGUI()
DxD
赞同来自:
LN_Leo
赞同来自:
138*****225
赞同来自:
豪
赞同来自:
wangtal
赞同来自:
thinbug
赞同来自:
ka
赞同来自:
ka
赞同来自:
getChildByName