Skip to content

Instantly share code, notes, and snippets.

@sortofsleepy
Last active March 19, 2024 16:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sortofsleepy/c96d6e3b0ed1dabd76379f9cea2fb063 to your computer and use it in GitHub Desktop.
Save sortofsleepy/c96d6e3b0ed1dabd76379f9cea2fb063 to your computer and use it in GitHub Desktop.
Setup UE w/ some excluded dependencies
/Engine/Extras/VisualStudioDebugging/**
/Engine/Extras/VisualStudioSnippets/**
/Engine/Extras/Maya_AnimationRiggingTools/**
/Engine/Extras/MayaVelocityGridExporter/**
/Engine/Plugins/Online/**
.\Setup.bat -exclude=WinRT -exclude=Linux32 -exclude=osx32 -exclude=Android -exclude=HTML5 -exclude=TVOS -exclude=IOS -exclude=GoogleVR -exclude=LeapMotion -exclude=Switch -exclude=Dingo -exclude=XboxOne -exclude=Linux -exclude=Linux64 -exclude=osx -exclude=Mac -exclude=MacOS -exclude=PS4 -exclude=PS5
@sortofsleepy
Copy link
Author

sortofsleepy commented Mar 17, 2024

This is for running UE setup when downloading from Github.

Note this is just a compilation of various other ideas found online and I haven't found a more recent explanation; platform names may have changed but it does seem to work to some extent at the very least.

If you look at the Platform folder within UnrealBuildTool found here, it may simply be enough to exclude the names from there that you don't need.

NOTE

This might be only me but as of 3.18.2023 on commit 072300d, before building the engine, it may be helpful to first

  • Navigate to UnrealEngine\Engine\Build\BatchFiles
  • And run .\Build.bat -Target="ShaderCompileWorker Win64 Development -Verbose"

The reason being is that I was running into issues where the most of the engine would build fine but something about ShaderCompilerWorker and writing metadata was failing with no explanation whatsoever. Unfortunately you won't know until the engine is almost entirely built so running this first can possibly help save some time and bring up the issue if it exists.

Potential issues

  • Also note that on commit 072300d, you also need to install v14.36-17.6 version of MSVC tools for your platform - for some reason things don't work on the latest and will trigger the following error
error C2248: 'FHazardPointerCollection::FHazardRecord::FHazardRecord': cannot access private member declared in class 'FHazardPointerCollection::FHazardRecord'

Potentially Extra Engine Plugins that can be removed

From /Engine/plugins/runtime, assuming you don't intend to take advantage of the functionality, it "should"(still testing, so far nothing seems broken) be safe to remove

  • AndroidBackgroundService
  • AndroidDeviceProfileSelector
  • AndroidFileServer
  • AndroidMoviePlayer
  • AR
  • IOSDeviceProfileSelector
  • IOSReplayKit
  • Oculus

Note that the Android and IOS stuff will still pop up even if you specified those platforms with the -exclude flag for some reason.

Visual Studio settings

Even though the directions do say to just simply install the various payloads, there are some things in there you may not actually need. This is a tested minimal setup with a few things removed. Also note that if you first open up the UE project file, as of VS 2022, it should mention if potentially necessary components are not yet installed.

Screenshot 2024-03-19 054608
Screenshot 2024-03-19 054654

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment