可以在 Unity 外部为游戏角色、地形和其他环境对象创建复杂的模型,并将它们导入。例如,可以在 Blender 或 Autodesk® Maya® 中为地形创建 SpeedTree 模型以及创建游戏对象。
Unity 支持可能从大多数 3D 建模应用程序导出的 FBX 文件。但是,SketchUp 和 SpeedTree 不支持导出到 FBX。有关如何使用这些专有文件格式的信息,请参阅 SketchUp 设置和 SpeedTree 文档。
请始终将模型从 3d 建模应用程序导出到 FBX,而不是直接在 Unity 项目中保存应用程序文件。不要在生产中直接使用原生文件格式。即使在项目中直接使用专有的应用程序文件,Unity 也会在导入这些文件之前先将它们转换为 FBX 格式。
开始在 3D 建模应用程序中创建任何内容之前,为确保获得最佳结果,请阅读以下准则:
Unity 的物理系统和光照系统希望游戏世界中的 1 米在导入的模型文件中为 1 个单位。
不同 3D 包的默认值如下:
将模型文件从具有不同缩放因子的 3D 建模应用程序导入 Unity 时,可以通过启用 Convert Units 选项将文件单位转换为使用 Unity 比例。
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.