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.
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.