HMD not detected in VR build

Hi,

I’m doing a test VR build based on the Virtual Reality project template. All of the project settings are set to the defaults. When I run the build exe, the game runs the default level but the camera appears to be locked to the center of the world. My HMD is in responsive.

How do I get the build to detect my HMD? Do I need to configure something on the VRPawn?

I’m using Unreal Engine 4.21.2 and HTC Vive. The HMD works fine in the editor in VR preview mode.

You need to set “Start in VR” in project settings. It’s set by default to off as VR use can be optional in your game (you can enable it via console command).