Skip to content
/ UE Public template

A Template repo to speed up your Unreal Engine development

Notifications You must be signed in to change notification settings

Unreal-UX/UE

Repository files navigation

A Template repo to speed up your Unreal Engine development on Windows

  • You can use it as a Template Repo or fork it. I would reccommend using it as a template so you can make your work private.
  • Make sure whatever name you give it is short, if you intent to do CI/CD. This will help save you from running over the 256 character limit on windows. The Long FileNames may help with this, but there are intermittent reports of success.
  • Make sure you have git Large File Storage enabled
  • Running SetupUnreal.bat should initialize the Unreal Repo as a submodule and add it to your computer, as well as pull dependancies, generate project files, and build once.

Working in the template repo

Unreal Engine should be setup as a Submodule in the /UnrealEngine/ folder. In order to pull the submodule you will need to make sure you have access to the Unreal Engine repo.

the /Projects/ folder is where you should create your various Unreal Engine Projects

Setting up CI/CD

You will need to add your Personal Access Token to GitHub Secrets named PAT. It is then available to your actions runners as ${{secrets.PAT}}.

GitHub Actions Runners

There is an included wokflow that can be altered to run on GitHub's Action runners, unfortunatly it will run out of space on those runner at this time, as they are 2 CPU, 7Gigi of ram, and under 20gigs of HD space (14 afaik, but some may be 10gig).

Self Hosted Runners

There are 2 included workflow that will run on a self hosted runner. One of the included workflows shows how to start and stop an Azure VM to build on, the other uses your local machine. They both take steps beyond building, and some of those steps may fail, feel free to delete them. When you setup the self hosted runner, you will need to make the paths as short as possible. I suggest the following changes

  • unzip it in a folder called build at the root of a drive (C:\ or D:\ )
  • make the working folder called w (full path c:\build\w\ when everything runs locally it will end up in a structure like C:\build\w\UE\UE\ *

You may also need to set PowerShell to be allowed to execute unsigned powershell script, if you wish to use powershell script. Please see this article.

Switching to your own Fork of Unreal Engine

You can switch the github repo that you use for the submodule. In theory, simply editing the .gitmodules file with an updated URL of your Unreal Engine fork (replacing https://github.com/EpicGames/UnrealEngine.git), and then re-syncing the submodule should do the trick.

Keeping your own Fork of Unreal Engine in sync

If you want to automate syncronizing your fork with the main UnrealEngine repo you can use the included github action to do so

Git LFS

This repo enables Git LFS by default. This is a recient change, but should make things better. GitHub limits a push to 2gb, so if you are working with large files, you may need to split up the 'git push' calls.

About

A Template repo to speed up your Unreal Engine development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published