MotionController module

I want to build a VR game with C++ using Unreal Engine. I created a blank project, wrote some C++ classes and used the MotionController module. When I packaged the project, I got an error: Could not find definition for module ‘MotionController’, (referenced via Target → VRGame.Build.cs).
I’ve already declared that module in the VRGame.Build.cs file. I didn’t know why.
Can anyone help me with that issue ?

Hi,

May you be great.

If you are using UMotionControllerComponent, the right module to add to <your_project>.Build.cs is HeadMountedDisplay, consequently the right include is #include "MotionControllerComponent.h".

See references at

May this help you.

Bye.

1 Like

Thank you.