Unity 支持来自各种程序或来源的纹理化 3D 模型。本简短指南由 Unity 游戏美术师和开发人员汇总而成,旨在帮助您在 Unity 项目中创建更好用、更高效的资源。
按比例工作对于光照和物理模拟都很重要。
*()?"#$
。用于构造对象的方法会对多边形的数量产生巨大影响,尤其是在未进行优化的情况下。在上图中,相同形状的网格在右侧有 156 个三角形,在左侧有 726 个三角形。726 个可能听起来不像是很多的多边形,但如果在一个关卡中使用 40 次,您将真正看到性能节省有多大。根据经验法则,通常应一切从简,仅在需要时添加细节。添加多边形总是比移除多边形更容易。
如果将纹理固定为 2 的幂(例如,512x512 或 256x1024),纹理将更有效,并且在构建时不需要重新缩放。您可以使用高达 4096x4096 像素,但 2048x2048 是许多显卡和平台上支持的最高像素。
您可以在线搜索有关创建合理纹理的专家建议,但本指南中的一些准则可帮助您从项目中获得最有效的结果:
Unity 可使用两种类型的文件:保存的 3D 应用程序文件和导出的 3D 格式。决定使用哪种文件非常重要。有关更多信息,请参阅模型文件格式。
2018–04–25 页面已修订
2018–09–26 页面已修订
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.