UE4 how to make production build for VR (HTC )?


I am trying to compile a production build for VR, but to no success so far. I have two problems:

  1. If I build the game in the “Shipping” configuration, it won’t launch, and instead show me an error that GlobalShaderCache-PCD3D_SM5.bin is missing. The error speaks of cooked content, but I tried building my level, it still does that whatever I do

  2. When you build a game, it won’t launch in VR by default. You have to open the console and enter “stereo on”. I tried adding a blueprint that sent this command at the game’s launch, but it doesn’t work unless the player enters it manually. Is there a way to fix that?

Basically, if someone knows how to properly build a working version of a VR Game in UE4…

Hello Malharhak,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in a clean project?
  2. If so, could you provide a detailed list of steps to reproduce this issue on our end?
  3. If instead of executing the command on begin play you use a key press event instead, does this make a difference?

Hello Malharhak,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you.

I have the same question for #2, as well. I’m not sure how to make a packaged build that forces VR. The game currently launches normally and then we have to manually enter “stereo on” to get into VR mode.

My Google searches all come up with suggestions of added an execute console command to the Blueprint scripts, but that feel very hacky to me. Is there not a built in way to define a game as being VR only?

Hello ddbrown30,

The Feature “Start in VR” was added in 4.13. I have provided a link to the public tracker. Please feel free to use the link for more information.

Link: Unreal Engine Issues and Bug Tracker (UE-31617)

Make it a great day