Skip to content

Instantly share code, notes, and snippets.

View infinstarlight's full-sized avatar
🏠
Working from home

Brandon Jones (Eduardo Valencia) infinstarlight

🏠
Working from home
View GitHub Profile
@infinstarlight
infinstarlight / ProjName.Build.cs
Created August 21, 2022 08:07
Quick example of how to include additional files (dlls,libs,so, etc) in Unreal
//See TargetRules.cs how this works
//Rider (and possibly VS) are not sure if this is a non null reference
string ProjDir = DirectoryReference.FromFile(Target.ProjectFile)?.ToString();
//Thank you to IntelOIDN.build.cs for providing an example of how to do this
if (Target.Platform.IsInGroup(UnrealPlatformGroup.Windows) &&
Target.WindowsPlatform.Architecture == WindowsArchitecture.x64)
{
string WinIncludeDir = Path.Combine(ProjDir, "Source/Resources/Windows/include/");
PublicSystemIncludePaths.Add(WinIncludeDir);