Unity 会生成 XAML C# Visual Studio 解决方案。生成 XAML C# 解决方案后,即可使用托管程序集,例如 UnityEngine.dll、Assembly-CSharp.dll 等,并在此基础上使用 XAML 代码。
Unity 将创建资源、vcproj、xaml 文件等文件。如果在同一目录之上构建项目,以下文件将不会被覆盖:
可安全地修改这些文件,如果要恢复到以前的状态,只需删除文件,然后在该文件夹的基础上构建项目。
注意:Unity 不会修改解决方案文件和项目文件(如果它们已存在于磁盘上)。Visual Studio 会采用整个 Data 文件夹而不是单个文件,因此如果有新文件添加到 Data 文件夹,则会自动选择该文件。
生成的 Visual Studio 项目有三种配置:Debug、Release 和 Master。Debug 配置具有各种安全检查,运行速度较慢;Release 配置会删除所有这些检查,但会启用性能分析器;Master 配置应当用于提交给应用商店的最终构建。
如果在左下角看到 Development Build 文本,则表示游戏不是为提交而构建的。如果从 Unity 进行构建时选择 Development Build,或者如果已构建 Debug 或 Release 配置,则会显示此文本。
• 2017–05–16 页面已修订但未经编辑审查
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.