PC、Mac、Linux スタンドアロンのビルド設定は、これらのプラットフォーム用のアプリケーションのビルド処理を設定し、始めるためのオプションが含まれています。これには、開発ビルドだけでなく、最終的なビルドを公開するための設定が含まれます。Build Settings ウィンドウにアクセスするには、File > Build Settings の順に選択します。設定し終えたら、Build をクリックしてビルドを開始するか、Build And Run をクリックしてビルドを作成し、指定したプラットホーム上で実行します。
以下の表はビルドに使用できる設定の概要を示しています。これらは、選択するターゲットオペレーティングシステムによって異なります。
設定 | 説明 | |
---|---|---|
ターゲットプラットフォーム | ||
Windows | Windows 用のビルド | |
macOS X (Linux では使用不可) | macOS用にビルド | |
Linux (Mac では使用不可) | Linux 用のビルド | |
Architecture | macOS では使用不可 | |
x86 | 32 ビット CPU | |
x86_64 | 64 ビット CPU | |
x86 + x86_64 (Universal) | Linux 用のすべての CPU デバイス | |
Server Build | コマンドラインのオプションを全く使わずに、ビジュアル要素なし (ヘッドレス) でサーバー用のプレイヤーをビルドします。これを有効にすると、UNITY_SERVER 定義を持つマネージスクリプトがビルドされます。これにより、アプリケーションにサーバー固有のコードを書くことができます。また、stdin と stdout にアクセスできるようにコンソールアプリケーションとして Windows バージョンにビルドすることもできます。Unity ログはデフォルトで stdout に保存されます。 |
|
Copy PDB files(Windows only) | この設定を有効にすると、ビルドされたスタンドアロンプレイヤーに Microsoft プログラムデータベース (.pdb) ファイルが含まれます。.PDB ファイルは、アプリケーションをデバッグするために使用するデバッグ情報が含まれています。.pdb ファイルをコピーすると、プレイヤーのサイズが大きくなる可能性があるため、公開を目的としたビルドでは、この設定を無効にする必要があります。この設定はデフォルトでは無効になっています。 | |
Create Visual Studio Solution(Windows only) | この設定を有効にすると、プロジェクトの Visual Studio Solution ファイルが生成され、Visual Studio で最終的な実行ファイルをビルドできます。 | |
Create Xcode Project (Mac Only) | この設定を有効にすると、Xcode プロジェクトを生成して、Xcode で最終的なアプリケーションバンドルをビルドできます。Xcode には、コードサイニングとアプリケーションを Mac App Store にアップロードするためのビルトインサポートがあります。 | |
Development Build | この設定を有効にすると、ビルドにスクリプトデバッグシンボルとプロファイラーが加えられます。この設定を有効にすると、DEVELOPMENT_BUILD スクリプト定義が設定されます。アプリケーションをテストしたい場合は、このオプションを使用してください。 |
|
Autoconnect profiler | この設定を使うには、Development Build オプションを有効にする必要があります。この設定を有効にすると、Unity プロファイラーは自動的にビルドに接続します。 | |
Deep Profiling Support | この設定を使うには、Development Build オプションを有効にする必要があります。ディーププロファイリングサポートにより、Unity プロファイラーはすべての関数の呼び出しを実装することでより詳細なデータをレコードできます。ディーププロファイリングを有効にすると、スクリプトの実行が遅くなる場合があります。 | |
Script debugging | この設定を使うには、Development Build オプションを有効にする必要があります。この設定を有効にすると、Unity はスクリプトコードにデバッグシンボルを追加します。 | |
Scripts Only Build | この設定を使うには、Development Build オプションを有効にする必要があります。この設定を有効にすると、以前に実行したビルドの データファイルを残したまま、アプリケーションのスクリプトのみを再ビルドできます。アプリケーションのコードを変更するだけの場合、スクリプトのビルドのみでイテレーション時間を大幅に改善します。この設定を使用するには、プロジェクト全体を 1 回ビルドする必要があります。 |
ビルドターゲットの最小要件については プレイヤーのシステム要件 のドキュメントを参照してください。
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.