在unity中将3D游戏对象导出为glb格式

发布于 2025-01-16 15:39:13 字数 249 浏览 2 评论 0原文

我需要在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

挽清梦 2025-01-23 15:39:13

Prefrontal UnityGLTF 对我来说非常有用,请按照以下步骤操作:

  1. Package Manager -> ; + ->从 git URL 添加包...

    • https://github.com/prefrontalcortex/UnityGLTF.git?path=/UnityGLTF/Assets/UnityGLTF
  2. Assets -> ; UnityGLTF->将所选导出为 GLB

  3. 可选 - 要检查其是否有效,请将输出上传到 基于网络的 GLTF 查看器

注意: 这是未维护的 Khronos UnityGLTF

The Prefrontal UnityGLTF works great for me, following these steps:

  1. Package Manager -> + -> Add package from git URL...

    • https://github.com/prefrontalcortex/UnityGLTF.git?path=/UnityGLTF/Assets/UnityGLTF
  2. Assets -> UnityGLTF -> Export Selected as GLB

  3. 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文