UE5
Last updated
Was this helpful?
Last updated
Was this helpful?
You need to update EpicGamesLauncher. After update, a new UE5 tab will appear. Next, install UE5 Early Access in the Library tab in the usual way.
We unable to generate project files because the path to UnrealBuildTool (a special program for UE automation) has changed. Change the version of the engine through the context menu (right-click on the .uproject file):
We get the error:
The same error will occur if we try to generate the project files via the Generate Visual Studio project files menu item.
I added three .bat files to generate project files in both repositories (GeometrySandbox and ShootThemUp):
Do not touch the first parent script devops/generate_project_files.bat
. This is a parameterized script that changes the project version and generates VS files:
Parameters necessary for generating project files for a specific version of the engine are passed to this script. This happens in the corresponding generate_project_files_4.26.bat scripts and generate_project_files_5.0.bat. In fact, they are needed to specialize the parameters of the parent script.
You need to change 2 variables according to the location of the UE on disk: EnginePath, VersionSelector.
Same. I draw your attention to BuildToolRelativePath, this path has changed in UE5 and because of this, there is now a problem with generation via the context menu. It has been moved to the UnrealBuildTool subdirectory:
BuildToolRelativePath=Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.exe
Nevertheless, when this script is called, an error window will be displayed:
This happens because when you switch the version, the project file generator is additionally called. There is nothing wrong with that. We just ignore it and click OK. This cannot be fixed without changing the source of the engine. In addition, after switching the engine version, we independently generate project files with the correct path to UnrealBuildTool.exe
Additional script for convenience. It cleans up all temporary files and directories.
This header file in the USTUHealthComponent class must be replaced with the base include:
include "Camera/CameraShakeBase.h"
This will not affect 4.xx versions in any way, so this is a general change. Updated this with a separate commit.
There is no need to switch to UE5. A very early version. Explore the interface - OK. Visually, only the interface has changed (in fact, the skin). All settings, parameters are in the same places. There will be no problems (at the moment) with the transition to UE5. All our projects are successfully compiled for this version already. The codebase is not affected in this regard. All course code will be valid for UE5 as well.
Additionally, for convenience, you can create an additional script clean_and_gen.bat that removes temporary files and generates project files at the same time, with two lines inside: clean_intermediate_files.bat generate_project_files_4.26.bat
Update repositories. The commits have been added.