Reducing the size of Unreal Engine 5 source project
When you decide to compile Unreal Engine 5 yourself, you might notice that the initial project is enormous. This is because you are downloading content for many platforms that you might not even need. Luckily, there is an easy way to reduce that size while remaining fully able to work with the engine. When we clone the repository, the engine's source is about 2.48GB (measured for version 5.7.4). Not bad! However, once we run Setup.bat to download additional dependencies, the size increases to a whopping 82.9GB ! This happens because the script downloads extra files for every supported platform and localization files for many languages. These files are huge. Excluding Platforms via Setup.bat Let’s assume we want to make a game for Windows only. We aren't interested in the files required by other platforms. We can skip downloading them by passing extra arguments to Setup.bat . Create a new batch file - let's call it SetupWindowsOnly.bat - and add the following command: Set...