I’m trying to use the Meta XR plugin in my C++ project.
In my custom Pawn, I’m trying to load the Controller component provided in that plugin.
But when I do, and I compile, I get this error:
Building patch from 5 file(s) for Live coding module C:\Users\BlueberryBanana3\Documents\Unreal Projects\XR_Switch\Binaries\Win64\UnrealEditor-XR_Switch.dll
Creating library C:\Users\Jordan\Documents\Unreal Projects\XR_Switch\Binaries\Win64\UnrealEditor-XR_Switch.patch_0.lib and object C:\Users\BlueberryBanana3\Documents\Unreal Projects\XR_Switch\Binaries\Win64\UnrealEditor-XR_Switch.patch_0.exp
XRPawn.cpp.obj : error LNK2019: unresolved external symbol "private: static class UClass * __cdecl UOculusXRControllerComponent::GetPrivateStaticClass(void)" (?GetPrivateStaticClass@UOculusXRControllerComponent@@CAPEAVUClass@@XZ) referenced in function "protected: virtual void __cdecl AXRPawn::BeginPlay(void)" (?BeginPlay@AXRPawn@@MEAAXXZ)
C:\Users\BlueberryBanana3\Documents\Unreal Projects\XR_Switch\Binaries\Win64\UnrealEditor-XR_Switch.patch_0.exe : fatal error LNK1120: 1 unresolved externals
I’ve added the modules to the .Build.cs
file, deleted the Intermediate folder and regenerated the project files, and still get the error. Any help appreciated.