UARBlueprintLibrarycan't find generated.h

Hey all,

So I’m trying to start an AR session programmatically in my game. To do this, I’m trying to use UARBlueprintLibrary::StartARSession( UARSessionConfig* ) but including the header provided in the documentation:

"#include “Runtime/AugmentedReality/Public/ARBlueprintLibrary.h”

gives me a compiler error: “ARTypes.generated.h file not found” in ARTypes.h.

So far, I’ve made sure I have the necessary AR plugins enabled in the plugin settings and have tried rebuilding my project in Xcode (v10.1) to try and get the header tool to generate the file. I’m running out of ideas and existing similar threads are thing appear to be thin at the moment. I appreciate the help!

Unreal version: 4.21.2

did u add the module to the build.cs?

1 Like

For anyone facing the same issue in Unreal 5.1.1 use following snippet inside your build.cs

PublicDependencyModuleNames.AddRange(new string[] { "AugmentedReality" });