I can do the following in blueprints:
How would I do that in code with my gameMode file. Which files do I need to include?
I can do the following in blueprints:
How would I do that in code with my gameMode file. Which files do I need to include?
APlayerCameraManager->bFollowHmdOrientation = true;
the second bool I don’t know, you can check node source code to reuse what it does or call the K2_ node through code.
I found the file it’s here:
#include “…/…/Engine/Plugins/Runtime/OculusLibrary/Source/OculusLibrary/Public/OculusFunctionLibrary.h”
However it gives an error when trying to include:
Error C:\Program Files\Epic Games\4.10\Engine\Source…/…/Engine/Plugins/Runtime/OculusLibrary/Source/OculusLibrary/Public/OculusFunctionLibrary.h(5) : fatal error C1083: Cannot open include file: ‘OculusFunctionLibrary.generated.h’: No such file or directory
You might need to modify YourGame.Build.cs inside Source/YourGame, add “OculusLibrary” in PublicDependencyModuleNames.
If not working, try PrivateDependencyModuleNames, PrivateIncludePathModuleNames…etc.
I’m not very sure how these names, if anyone could give a better answer and documentation link it would be appreciated.