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
Basic
and create a new level. Save the level asStage2
. -
Create a Blueprint with
Game Mode Base
as the parent and name itBP_Stage2GameMode
. -
Duplicate
VRPawn
in theContent/VRTemplate/Blueprints
folder and name itBP_Stage2VRPawn
. -
Duplicate
IMC_Default
in theContent/VRTemplate/Input
folder and name itIMC_Stage2Default
. -
Create an
Input Action
and name itIA_APress
. -
Open
IMC_Stage2Default
, add a new mapping and selectIA_APress
, assignOculus Touch (R) A Press
and theA
key on your keyboard and save. -
Open
BP_Stage2VRPawn
and go toEventGraph
.
Add anEnhancedAction IA_Apress
event node, drag from theTriggered
execution pin and add aPrint String
node.
Change theMapping Context
of theAdd Mapping Context
node toIMC_Stage2Default
. Compile and saveBP_Stage2VRPawn
. -
Open
BP_Stage2GameMode
and changeDefault Pawn Class
toBP_Stage2VRPawn
. Compile and saveBP_Stage2GameMode
. -
Open
World Settings
for theStage2
level and changeGameMode Override
toBP_Stage2GameMode
and 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.