I’m having trouble with input issues in a project based on VR Template.
When I try to use assets from VR Template to create a new level, I duplicate and modify VRPawn or IMC_Default, but the input doesn’t work as expected.
I’m using Unreal Engine 5.6 and Meta Quest 3.
The steps are as follows:
-
Create a new project with VR Template. Name the project
VR_InputTest. -
Select
Basicand create a new level. Save the level asStage2. -
Create a Blueprint with
Game Mode Baseas the parent and name itBP_Stage2GameMode. -
Duplicate
VRPawnin theContent/VRTemplate/Blueprintsfolder and name itBP_Stage2VRPawn. -
Duplicate
IMC_Defaultin theContent/VRTemplate/Inputfolder and name itIMC_Stage2Default. -
Create an
Input Actionand name itIA_APress. -
Open
IMC_Stage2Default, add a new mapping and selectIA_APress, assignOculus Touch (R) A Pressand theAkey on your keyboard and save. -
Open
BP_Stage2VRPawnand go toEventGraph.
Add anEnhancedAction IA_Apressevent node, drag from theTriggeredexecution pin and add aPrint Stringnode.
Change theMapping Contextof theAdd Mapping Contextnode toIMC_Stage2Default. Compile and saveBP_Stage2VRPawn. -
Open
BP_Stage2GameModeand changeDefault Pawn ClasstoBP_Stage2VRPawn. Compile and saveBP_Stage2GameMode. -
Open
World Settingsfor theStage2level and changeGameMode OverridetoBP_Stage2GameModeand save.
Run it in VR Preview.
When I press the A key on my keyboard, the text of the Print String node is displayed, but there is no response when I press the A button on Oculus Touch (R).
I don’t know why this problem occurs.
Is there something I’ve overlooked?
Thank you in advance.