Advanced build configuration
The Advanced settings tab displays the build target’s Advanced settings.
You set advanced options per build target. For example, if you select the Advanced settings link for an iOS target, those options are only for that iOS target. Or, when you select Advanced settings for an Android target, those options are only for that Android target. You can use different pre methods and post methods per platform, and per build target.
The following describes the Advanced settings:
Property | Description |
---|---|
Build output | A build output includes debug symbols and enables the Profiler. |
Caching | Select caching strategy to improve build speed. Refer to Select Caching Strategy. |
OS dependency settings | Specify settings related to the internal dependency of the OS used to build. |
Platform specific settings | Set advanced options specific to the platform selected. |
Script hooks -Pre-Build Script | Set the script that Build Automation runs before the Unity build process starts. You can use this script for custom pre/post processing. Refer to Run custom scripts during the build process. |
Script hooks -Post-Build Script | Build Automation runs this script after the Unity build process completes. You can use this script for custom pre and post processing. Refer to Run custom scripts during the build process. |
Script hooks-Pre-Export Method | Manipulate project files before the project builds. For example, you can copy variables from an external file into the project, process Assets, or work with plug-ins that require special treatment. Refer to Pre-export method name. |
Script hooks- post-Export method | Add the public method you want to call after finishing the Unity build process (but before Xcode). Refer to Post-export method name. |
Environment variables | Use environment variables if you want to give different configurations to your code for different builds. |
Tests | Use tests to configure conditions to run tests and actions on failures. |
Scenes | Use scenes to configure a build target to build a set of Scenes that’s different from what is set up in the project’s Build Settings menu in the Unity Editor. Refer to Specify the Scene to build. |
Addressables | Use this to build the configured Addressables for the build target’s platform as part of the build process. For more information, Refer to Build Addressables with Build Automation. |
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, refer to AssetBundles. |