How to package a UE4 project to run on SteamVR?

I’ve made a very simple VR project which works with my HTC Vive when using VR preview (if I run the UE4 editor with rights).

However when I try to package the project, it generates to WindowsNoEditor and I can’t figure out how to run the packaged project through the HMD/SteamVR?

When running the generated .exe, typing in ANY of the console commands returns “Command not recognised”, e.g. “Stereo On”, “HMD Enable”, “Ovrversion” etc. Makes no difference if I run the packaged .exe with admin rights.

Any ideas? Is there a command I need to pass to the CLI? An option when packaging?

Same question here…

  • Start with the -fullscreen commandline
  • Put a ConsoleCommand in your level / game mode blueprint that calls “stereo on”
  • You can edit your packaged build’s UE4CommandlLine.txt to include the -fullscreen command

Hey

To package for SteamVR, you’ll need to read our documentation:

  • [Virtual Reality Documentation][1]
  • [SteamVR Documentation][2]
  • [SteamVR Best Practices][3]

Good luck!

Developing for XR Experiences in Unreal Engine | Unreal Engine 5.1 Documentation
[2]: https://docs.unrealengine.com/latest/INT/Platforms/SteamVR/QuickStart/index.html
[3]: https://docs.unrealengine.com/latest/INT/Platforms/SteamVR/BestPractices/index.html

The documentation you provided does not have any information targeting how to package projects to work with SteamVR/Vive. Packaged projects work as per normal with the Oculus plugged in but it appears the Vive is a whole other story/process to go through to get it to work.

@jdub_dub have you been able to find a solution?

Edit: found a solution that worked for me. I did not have SteamVR running when opening the packaged project…

  1. Run SteamVR (make sure it’s ‘Ready’)
  2. Open packaged project
  3. Alt + enter

Let me know if it works for you!

Slam937,

Besides the information where packaged projects work the same with SteamVR as they do Oculus, is there any additional information that you noticed was missing from our documentation? I can always submit a request to have our documentation team update the page.

Thanks!

It’s working for me now! A few things seemed to help:

  • Restarting and making sure nothing was running with rights
  • Making sure SteamVR was running and Ready before starting the built .exe

When SteamVR is not running, “Stereo on” returns “Command not recognised”. When SteamVR is running and “Ready”, it works as expected.

I don’t even need to run the .exe with the -fullscreen switch, or press Alt-Enter; it’s fine to just put a new Run Console Command “Stereo on” in the Event BeginPlay of the Game Mode.

That actually works great! Thanks a lot.

Thanks for your solution, it worked!

Just enable “Start in VR” in project settings.

Merci pour la réponse ( Just enable “Start in VR” in project settings. ) ça fonctionne :slight_smile:

I tried the following but my hmd doesnt seem to track, the game is starting but the camera is stuck on the floor where the vrpawn begins the stage.