在unity中将3D游戏对象导出为glb格式
我需要在 unity 中将 3D 模型导出为 glb 格式,并稍后将其导入其他应用程序。
我尝试过 gltFast、uniVRM、unityGLTF 等软件包,但它们在导出时都存在一些问题。 gltFast 似乎效果最好。我可以用它成功导入 glb 文件。当我尝试将游戏对象导出到 glb 时,它似乎工作正常并且返回成功日志。但导出的文件已损坏。打不开。当我尝试导入导出的文件时,出现如下错误:ArgumentException:JSON 解析错误:缺少对象成员的名称。
I need to export a 3D model to glb format within unity and import them later for other applications.
I've tried packages like gltFast, uniVRM, unityGLTF but they all have some problems while exporting. gltFast seems to work the best. I can succesfully import glb files with it. And when I try to export a game object to glb it seems to work fine and it returns with a success log. But the exported file is corrupted. It can't be opened. And when I try to import the files I exported I get an error like this: ArgumentException: JSON parse error: Missing a name for object member.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Prefrontal UnityGLTF 对我来说非常有用,请按照以下步骤操作:
Package Manager -> ; + ->从 git URL 添加包...
https://github.com/prefrontalcortex/UnityGLTF.git?path=/UnityGLTF/Assets/UnityGLTF
Assets -> ; UnityGLTF->将所选导出为 GLB
可选 - 要检查其是否有效,请将输出上传到 基于网络的 GLTF 查看器
注意: 这是未维护的 Khronos UnityGLTF
The Prefrontal UnityGLTF works great for me, following these steps:
Package Manager -> + -> Add package from git URL...
https://github.com/prefrontalcortex/UnityGLTF.git?path=/UnityGLTF/Assets/UnityGLTF
Assets -> UnityGLTF -> Export Selected as GLB
Optional -To check it worked, upload the output to a web-based GLTF viewer
NOTE: This is a more current fork of the unmaintained Khronos UnityGLTF