Version: 2022.1
言語: 日本語
Set up a Gymfile in Unity Cloud Build
Build output

Build target configurations

When you’ve configured your project in Cloud Build, you can set up advanced build options for each of your build targets.

これらのオプションは Unity エディターでサポートするビルド処理オプションより複雑なビルドを提供します。

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:

  1. Sign in to the to the Unity Developer website.
  2. Select DevOps > Cloud Build > Configurations.

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.

Quick target setup flow for iOS​
Quick target setup flow for iOS​

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.

Target setup advanced settings for iOS​
Target setup advanced settings for iOS​

In the Advanced settings tab, the build target’s Advanced Options are displayed.

すべての詳細なオプションはビルドターゲットごとに設定されます。例えば、iOS ターゲットの Advanced Options リンクをクリックすると、オプションはその iOS ターゲットだけのオプションです。 Android ターゲットの Advanced Options をクリックすると、そのオプションはその Android ターゲット専用になります。このように、プラットフォームごと、ビルドターゲットごとに、異なる前処理および後処理メソッドを使用できます。

以下の表は 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 これを使用すると、Unity エディターのプロジェクトの Build Settings メニューで設定されているものとは異なるいくつかの シーン をビルドターゲットに設定することができます。詳しくは、指定したシーンをビルド を参照してください。
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.

Xcode フレームワークの使用

iOS 用にビルドする場合、Unity ビルド処理が完了した後、Xcode のビルド処理が開始される前に、さまざまなフレームワークを取り込む必要があります。

詳細は、Xcode フレームワーク を参照してください。

Set up a Gymfile in Unity Cloud Build
Build output