构建设置
The Build Settings window allows you to choose your target platform, adjust settings for your build, and start the build process. To access the Build Settings window, choose “Build Settings” from the File menu. Once you have specified your build settings, you can click “Build” to create your build, or click the “Build and Run” to create and run your build on the specified platform.
构建设置窗口允许你选择目标平台,编辑你的构建设定,和开启构建进程.从文件菜单选择”构建设置”,进入构建设置窗口.一旦你已经指定了你的构建设置你可以点击”构建”来创建你的构建,或点击”构建和运行”来创建并运行你的构建在指定平台上.
Build Settings window
构建设置窗口
构建中的场景
This part of the window shows you the scenes from your project that will be included in your build. If no scenes are shown then you can use the Add Current button to add the current scene to the build, or you can drag scene assets into this window from your project window. You can also untick scenes in this list to exclude them from the build without removing it from the list. If a scene is never needed in the build you can remove it from the list of scenes by pressing the delete key.
这部分窗口显示了来自你项目将被包含在你构建内的场景.如果没有显示有场景那么你可以使用”添加当前场景”按钮来添加当前场景到构建内,或者你可以从你的项目窗口拖拽场景资源到此窗口内.你也可以在此列表内取消勾选场景来不包含它们到构建内无需从列表内移除它们.如果一个场景在构建内不再需要你可以从场景列表通过按删除键移除它.
Scenes that are ticked and added to the Scenes in Build list will be included in the build. The list of scenes will be used to control the order the scenes are loaded. You can adjust the order of the scenes by dragging them up or down.
场景被勾选和添加到构建的场景列表上将被被包含到构建内.场景列表将被用于控制场景加载的顺序.你可以通过向上或向下拖拽场景来调整场景的顺序.
平台列表
The Platform area beneath the Scenes in Build area list all the platforms which are available to your Unity version. Some platforms may be greyed out to indicate they are not part of your version or invite you to download the platform specific build options. Selecting one of the platforms will control which platform will be built. If you change the target platform, you need to press the “Switch Platform” button to apply your change. This may take some time making the switch, because your assets may need to be re-imported in formats that match your target platform. The currently selected platform is indicated with a Unity icon to the right of the platform name.
“平台”区域在”构建中的场景”区域之下,列出了所有适用于你的Unity版本的平台.有些平台或许会是灰色的,表示它们不是你版本的部分或要你去下载平台特定的构建选项.选择一个平台将控制构建为哪个平台的.如果你修改了目标平台,你需要按”切换平台”按钮来应用你的修改.这将要一些时间来做切换,因为你的资源将要按匹配目标平台的格式重新导入.当前选中平台在平台名称右边用一个Unity图标来指明.
The selected platform will show a list of options that can be adjusted for the build. Each platform may have different options. These options are listed below. Options that are common across many platforms are listed at the very bottom of this section under the “Generic items across builds” details.
选中平台将显示一个选项列表,可以调整构建.每个平台将有不同的选项.这些选项在下面列出.许多平台通用选项在底部的”通用构建项”列出.
Option |
Purpose |
Streamed 流 |
The webplayer will start as soon as the first scene data is downloaded. Other scenes will continue to be download. 网页播放器在第一个场景数据下载后就启动.其他场景将继续下载. |
Offline Deployment 离线部署 |
The webplayer will make no network connections 网页播放器将不联网编译. |
Option |
Purpose |
Target Platform 目标平台 |
|
Windows |
Build for Windows |
Mac OS X |
Build for Mac |
Linux |
Build for Linux |
Architecture 系统结构 |
x86 |
x86 |
32-bit CPU |
x86_64 |
64-bit CPU |
Universal通用 |
All CPU devices 所有cpu设备 |
x86 + x86_64 (Universal) |
All CPU devices for Linux 所有Linuxcpu设备 |
Headless Mode 无头模式 |
Build game for server use and with no visual elements 构建用于服务器和无视觉元素的游戏 |
Option |
Purpose |
Run in Xcode as |
运行在Xcode作为 |
Release 发布 |
Shipping version 配对版本 |
Debug 调试 |
Testing version 测设版本 |
Symlink Unity libraries Unity库符号链接 |
Reference to the Unity libraries instead of copying them into the XCode project. (Reduces the XCode project size.) 引用Unity库而不是拷贝它们到Xcode项目.(降低Xcode项目大小) |
Option |
Purpose |
Texture Compression 材质压缩 |
|
Don’t override |
|
DXT Tegra) |
|
PVRTC (PowerVR) |
|
ATC (Adreno) |
|
ETC (default) |
|
ETC2 (GLES 3.0) |
|
ASTC |
|
Google Android Project 谷歌安卓项目 |
Build Settings for Tizen use the generic settings shown later on this page.
泰泽系统构建设置使用通用设置,在此页面稍后显示.
Option |
Purpose |
Optimization Level 优化级别 |
Active when Development Build is selected 当开发构建选中激活 |
Slow (fast builds) |
慢(构建快速) |
Fast |
快 |
Fastest (very slow builds) |
最快(构建非常慢) |
Build Settings for Samsumg TV use the generic settings shown later on this page.
三星电视构建设置使用通用设置,在此页面稍后显示.
Option |
Purpose |
TBD |
TBD |
Option |
Purpose |
TBD |
TBD |
Console platforms and devices which require a Unity license will be documented in the Platform Specific section of the User Guide.
控制台平台和那些需要Unity许可证的设备将被记录在用户指南的平台特定部分.
构建通用项
Option |
Purpose |
Development Build 开发构建 |
Allow the developer to test and work out how the build is coming along. 允许开发者测试和解决如何提高构建 |
Autoconnect Profiler 自动连接分析器 |
When the Development Build option is selected allow the profiler to connect to the build. 当开发构建选项被选中时允许分析器连接到构建中. |
Script Debugging 脚本调试 |
When the Development Build option is selected allow the script code to be debugged. Not available on WebGL. 当开发构建选项选中时允许调试脚本代码.不适用于网页图形库. |