When you’ve configured your project in Cloud Build, you can set up advanced build options for each of your build targets.
These options accommodate the more complex build processing options supported in the Unity Editor.
Note: If you are configuring your build options for the first time, you must set up source control first.
To access your build target’s advanced options:
You have two options to set up a new build target:
Quick target setup
When you select Quick target setup, you see the basic configurations required to configure a build target for each platform. Choose this option if you don’t want to configure advanced settings for your build target.
Target setup
When you select Target setup, you first set up the basic settings required for launching your build target. Then, you can either save your configuration or move to the advanced settings.
In the Advanced settings tab, the build target’s Advanced Options are displayed.
All advanced options are set per build target. This means that, for example, when you click the Advanced Options link for an iOS target, those options are only for that iOS target. When you click Advanced Options for an Android target, those options are only for that Android target. This lets you use different pre- and post-methods per platform, per build target.
The table below describes the Advanced Options.
属性 | 描述 |
---|---|
Build output | A build output includes debug symbols and enables the Profiler. For more information, see Build output. |
Script hooks -Pre-Build Script | Cloud Build will run this script before the Unity build process starts. You can use this script for custom pre/post processing. |
Script hooks -Post-Build Script | Cloud Build will run this script after the Unity build process is completed. You can use this script for custom pre/post processing. |
Script hooks-Pre-Export Method | Manipulate project files before the project is built. Examples include copying variables from an external file into the project, processing Assets, or working with plug-ins that require special treatment. For more information, see Pre- and post-export methods. |
Script hooks- post-Export method | Add the public method you want use to call after finishing the Unity build process (but before Xcode). |
Tests | Use this to configure conditions to run tests and actions on failures. |
Environment variables | Use environment variables if you want to give different configurations to your code for different builds. |
Scene List | Use this to configure a build target to build a set of Scenes that’s different to what is set up in the project’s Build Settings menu in the Unity Editor. For more information, see Including specific Scenes. |
Addressables | Use this to build the configured Addressables for the build target’s platform as part of the build process. For more information, see Using Addressables in Unity Cloud build. |
Asset bundles | Use this to build all configured Asset Bundles for this build target’s platform as part of the build process. For more information, see AssetBundles. |
如果要发布到 iOS,则在 Unity 编译过程完成后但在 Xcode 编译过程开始之前,您可能需要纳入各种框架。
See Xcode frameworks for more information.