Hi! I am a new unreal developer and i am trying to make a simple VR project. I made an inventory system (a disk with a widget) and i put it on “BP_MotionController”. I made it hidden in game and i would like to unhide it when i press the “A” button on my oculus controlers. So i went to Edit>Input>AchionMapping and i make a new action “inventory” with the “A” button ( and i make sure that the button i want didn’t used to an other action). In my BP_MotionController’s Event graph i make the blueprint below but it didn’t work. Any ideas what i have done wrong??
It looks to me like your on the right track however you have placed your input in the motion controller so it’s not firing, this is because the motion controller doesn’t consume the input only the Motion Controller Pawn does.
You should be able to get this sorted pretty easily though. In your BP_MotionController Delete the Input Action Inventory system Event and replace it with a Custom event called “Set Inventory Visibility”
Should look like the image above. Then in your BP_MotionControllerPawn You can set up the Input.
In the example I’m using the Left Controller but if you want it on the right hand then replace it with the Right Controller Variable that already exists.
Dragging from the Left Controller Reference search for the custom event you created. Now you can fire it from the Motion Controller Pawn. And it should work fine
Hi!! Really thanks for your time but i am not sure i understand your answer. First of all in your motion controller hierarchy i didn’t see the bp disk inventory menu. In my project i have it as child of the hand mesh. So the “set actor hidden in game” doesn’t work. I try the same bp but with the “set hidden in game” and it didn’t work.