「Unreal Engine 5」の版間の差分

提供: ArchWiki
ナビゲーションに移動 検索に移動
(→‎AUR から: リンクを修正)
59行目: 59行目:
 
PKGBUILD のソースとして ''.zip'' リリースを使用すると、ダウンロードサイズが小さくなります。ただし、このリンクは、最初に [[#ソースコードへのアクセス権を取得|上記]] で概説された手順に従ってからでないと機能しません。
 
PKGBUILD のソースとして ''.zip'' リリースを使用すると、ダウンロードサイズが小さくなります。ただし、このリンクは、最初に [[#ソースコードへのアクセス権を取得|上記]] で概説された手順に従ってからでないと機能しません。
   
=== Compilation time ===
+
=== コンパイル時間 ===
   
  +
コンパイルにかかる時間は、マシンの性能によって異なり、20 分から数時間かかる場合があります。
The compilation can take from 20 minutes up to a few hours depending on your machine.
 
As an example on a AMD FX-8350 (8 threads) with 16GB DDR3 on a SSD and Clang 3.8.1 takes roughly 40 minutes.
+
例として、AMD FX-8350(8 スレッド)、16GB DDR3SSDClang 3.8.1 の環境では、約 40 分かかります。
  +
(これには、シェーダーのコンパイル時間は含まれません)
(This does not include shaders compilation)
 
   
 
== Troubleshooting ==
 
== Troubleshooting ==

2023年8月29日 (火) 20:14時点における版

Unreal Engine 5 は Epic Games によって作成されたビデオゲームエンジンの最新バージョンでした。

この記事の内容は、元々 Unreal Engine wiki に書かれており、Arch Linux 用に特別に適応されました。

必須条件

推奨ハードウェア を参照してください。

ソースコードへのアクセス権を取得

Unreal Engine のソースコードは、プライベートな GitHub リポジトリにあり、アクセスするために開発者(Epic Games)への 無料登録 が必要です。

アクセス権を取得するために、Epic Games アカウント でログインまたは登録し、Epic Games 'Connected Accounts Dashboard' ページの下部にアクセス可能な GitHub ユーザー名を提供してください。その後、プライベートな GitHub リポジトリへのアクセス権の招待が送られます。

Clone

特定のブランチだけをクローンする方が速いです。

$ git clone git@github.com:EpicGames/UnrealEngine.git --branch release --single-branch

コンパイル

ダウンロードした GitHub のリリースから手動でコンパイルするか、AUR からインストールすることができます。

手動

ノート: 手動でのコンパイル手順は AUR の PKGBUILD と大きく異なります。

GitHub 上で ZIP として最新のリリースを取得できます。

ノート: プライベートリポジトリへのアクセスには、Epic Games オーガニゼーションへの招待が必要です。招待は、GitHub アカウントを Epic Games アカウントにリンクすることで取得できます。

セットアップ:

$ ./Setup.sh

プロジェクトファイルを生成:

$ ./GenerateProjectFiles.sh 

その後、コンパイル:

$ make -j1

これにより、Unreal Engine と Unreal Editor がコンパイルされます。

AUR から

Unreal Engine 5 は、unreal-engineAUR パッケージとして AUR で利用可能です。最初の起動時にシェーダーを事前コンパイルするため、UE5 のパーミッションを修正する必要があるかもしれません:

# chmod -R a+rwX /opt/unreal-engine/Engine

このパッケージはインストール後(最初の起動時にシェーダーをコンパイルした後)約 70 ギガバイト (GiB) で、コンパイルするために約 120 GiB のスペースが必要で、圧縮時に ABS パッケージの出力が約 9 GiB になります。この AUR パッケージは、ソースファイル約 10 GiB と依存関係約 5 GiB をダウンロードします。

リポジトリはプライベートなため、set up an SSH key することで、ソースのダウンロードに GitHub アカウントが使用されます。

PKGBUILD のソースとして .zip リリースを使用すると、ダウンロードサイズが小さくなります。ただし、このリンクは、最初に 上記 で概説された手順に従ってからでないと機能しません。

コンパイル時間

コンパイルにかかる時間は、マシンの性能によって異なり、20 分から数時間かかる場合があります。 例として、AMD FX-8350(8 スレッド)、16GB DDR3、SSD、Clang 3.8.1 の環境では、約 40 分かかります。 (これには、シェーダーのコンパイル時間は含まれません)

Troubleshooting

Compilation problems

If the compilation fails you should try building the Editor using the Debug profile[1]:

$ make UE5Editor-Linux-Debug

However, this might have some performance impact.

Another approach would be to use different clang version (e.g. 3.8 or 4.0)

Runtime problems

If the editor does not start from the menu, or something does not work right, start it in a console and check the output for errors.

$ /opt/unreal-engine/Engine/Binaries/Linux/UnrealEditor

C++ code project problems

After creating a code project, the new project opens in a text editor instead of in Unreal Editor as it should. After re-launching the editor, the new project shows up and can be opened, but on the first run, it takes a half-hour or so to compile, and since this happens in the background (no GUI) it might not seem to be doing anything. The CPU usage should show that it is still compiling, and you may want to launch the editor from a console to see progress.

If while trying to open the project in UE for the first time, you get a message about editor modules being out of date, you need to build the UE5Editor target in your IDE. Do not abort this build, or you will brick the Unreal Editor and will need to reinstall unreal-engine. Afterward, it will open and ask you to rebuild the project class, after which you can actually start working on your new project.

Note that completing both of these rebuilds can very well take over an hour, depending on your system specs.

Engine modules are out of date, and cannot be compiled while the engine is running. Please build through your IDE

First, in your source folder in your project, check that {nameofproject}.Target.cs and {nameofproject}Editor.Target.cs has "DefaultBuildSettings = BuildSettingsVersion.V2;" in the section base(Target) { ... } If it does not work, check the file Engine/Source/Developer/DesktopPlatform/Private/DesktopPlatformBase.cpp in your Unreal Engine source code, look for the line `Arguments += " -Progress -NoEngineChanges -NoHotReloadFromIDE";` et remove the two last options : `Arguments += " -Progress";`

- Re-compile Unreal Engine - Launch your project and accept the rebuild

Disable Tooltips

UE4's mouse-over tooltips might be rendered very slow. They can be disabled by adding to:

Engine/Config/ConsoleVariables.ini
Slate.AllowToolTips=0

Random freeze under KDE

Disable index file content in the KDE file search options.

Slow rendered tooltips in KDE

Epic suggests allowing compositing for the Unreal Editor, which is stopped by default. Source: https://michaeljcole.github.io/wiki.unrealengine.com/Linux_Known_Issues/#KDE

Blank window in Blueprint with multi-monitor configuration

To fix the big blank window go to Edit Preferences > User interface > Enable Window Animation and activate the checkbox

Error message about blocklisted drivers while using AMDVLK

AMDVLK isn't officially supported by Unreal Engine, but this limitation can be circumvented (not recommended) by editing/removing the section for driver blocklisting:

Engine/Config/BaseHardware.ini
[GPU_AMD Linux]

Additional Content

Starter Content

The StarterContent project is installed to /opt/unreal-engine/Samples/StarterContent/StarterContent.uproject, you can browse to it from the launcher.

Marketplace Apps

The launcher with the Unreal Marketplace is not available for Linux yet[2], so apps like the ContentExamples project cannot be installed from Linux[3].

The marketplace apps can be downloaded using the launcher on Windows (or Mac), they are stored in /Program Files (x86)/Epic Games/Launcher/VaultCache/.

There are several options to download Marketplace content natively: