Linux 用のビルドを作成するには、Unity のメインメニューから File > Build Settings と移動し、Platform リストで Linux を選択し Switch Platform をクリックします。
ビルド設定が完了したら、次の 2 つのオプションから 1 つを選択します。
The Scenes In Build pane displays a list of the Scenes from your Project that Unity includes in the build. If you can’t see any Scenes in this pane, select Add Open Scenes to add all the currently open Scenes to the build. You can also drag Scene Assets from your Project window into this window.
シーンをビルドから除外するには、そのシーンの横にあるチェックボックスを外します。これにより、シーンはビルドから削除されますが、リストからは削除されません。リストからシーンを削除するには、シーンを選択してキーボードの Delete キーを押します。
Build または Build and Run を選択すると、Unity は Scenes In Build リストのすべてのシーンを含むビルドを作成します。Unity はシーンのリストを使用して、シーンをロードする順序を決定します。シーンの順序を調整するには、リストを上または下にドラッグします。
Platform リストには Unity エディターで使用可能なすべてのプラットフォームが表示されます。リストでは、ターゲットプラットフォームとして現在選択されているプラットフォームの名前の横に Unity アイコンが表示されます。
Unity は、インストールしたプラットフォームモジュールに応じて、使用可能なプラットフォームを決定します。
プロジェクトにさらにプラットフォームモジュールをインストールするには、以下を行います。
ターゲットプラットフォームを変更するには、切り替えたいプラットフォームを選択してから、 プラットフォームを切り替える を選択します。これには時間がかかる場合があります。なぜなら、ターゲットプラットフォームに合わせた形式でアセットを再インポートする場合があるためです。
When you select a platform, Unity displays a list of options that you can adjust for the build. Each platform has unique settings that are listed on each platform-specific manual page. Select the Windows, Mac, Linux build target to build standalone applications for most desktop platforms.
これらの設定を使って、Unity がアプリケーションをビルドする方法を設定します。
設定 | 機能 | |
---|---|---|
Target platform | Select Linux to build your app for the Linux platform. | |
Development Build | Enable this setting to include scripting debug symbols and the Profiler in your build. When you enable this, Unity sets the DEVELOPMENT_BUILD#define for testing purposes. When you select Development Build, Autoconnect Profiler, Deep Profiling Support, Script Debugging, and Wait for Managed Debugger settings also become available. |
|
Autoconnect Profiler | Enable this setting to automatically connect the Unity Profiler to your build. | |
Deep Profiling Support | Enable this setting to switch Deep Profiling in the Profiler. This makes the Profiler instrument every function call in your application and returns more detailed profiling data. When you enable Deep Profiling Support, it might slow down script execution. | |
Script debugging | Enable this setting to allow your script code to be debugged. Not available on WebGL. | |
Wait for Managed Debugger | Enable this setting to be prompted to attach a debugger before Unity executes any script code. | |
Compression Method (Lumin と WebGL プラットフォームでは使用不可) | プレイヤーをビルドするときに、プロジェクトのデータを圧縮します。これには、アセット、シーン、プレイヤー 設定、GI データ が含まれます。以下の方法のいずれかを選択します。 | |
Default | Windows、Mac、Linux、iOS は、デフォルトでは圧縮しません。Android では、デフォルトの圧縮は ZIP です。ZIP は LZ4HC よりも優れた圧縮結果になりますが、データの解凍が遅くなります。 | |
LZ4 | A fast compression format that’s useful for development builds. For more information, see BuildOptions.CompressWithLz4. | |
LZ4HC | A high compression variant of LZ4 that’s slower to build but produces better results for release builds. For more information, see BuildOptions.CompressWithLz4HC. |
The Asset Import Overrides section allows you to locally override all texture import settings to speed up import and platform switch time. You must avoid shipping your final build with any import overrides, but during development they can be useful to speed up iteration time, especially, if assets such as textures resulting in lower resolution is not of any concern.
設定 | 機能 | |
---|---|---|
Max Texture Size | Override the maximum imported texture size. Unity imports textures in the lower of two values: this value, or the Max Size value specified in Texture import settings. The time it takes to import a texture is roughly proportional to the amount of pixels it contains; therefore, reducing maximum allowed texture size can speed up the import times. However, as this setting might result in lower resolution textures, use it only for development. |
|
Texture Compression |
テクスチャインポート設定 で設定されたテクスチャ圧縮オプションをオーバーライドします。 これは、圧縮テクスチャ形式 のいずれかにインポートされたテクスチャにのみ影響します。 |
|
Force Fast Compressor | 適用可能な形式 (BC7、BC6H、ASTC、ETC、ETC2) では、より高速で低品質のテクスチャ圧縮モードを使用します。通常、これにより圧縮アーティファクトが増加しますが、多くの形式では、圧縮自体が何倍も高速になります (2 - 20 倍高速)。 この設定はまた、すべてのテクスチャの クランチ テクスチャ圧縮形式を無効にします。 この効果は、すべてのテクスチャに対して、プラットフォームの テクスチャインポート設定 で Compressor Quality を Fast に設定したのと同様です。 |
|
Force Uncompressed | テクスチャを圧縮しないで、代わりに非圧縮形式を使用します。 これはテクスチャ圧縮プロセス全体をスキップするためインポートが高速ですが、結果のテクスチャはより多くのメモリとゲームデータサイズを消費し、レンダリングパフォーマンスに影響を与える可能性があります。 この効果は、すべてのテクスチャに対して、プラットフォームの テクスチャインポート設定 で Compression を None に設定したのと同様です。 |
また、-overrideMaxTextureSize
と -overrideTextureCompression
エディター コマンドライン引数 を使って、アセットインポートのオーバーライド設定を行い、初期のプロジェクトインポートを変更することもできます。
To build your Linux application, select one of the following:
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.