# Switch PC to VR in Runtime

**URL:** <https://forums.unrealengine.com/t/switch-pc-to-vr-in-runtime/2250596>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [December 30, 2024, 3:10pm UTC](https://forums.unrealengine.com/t/switch-pc-to-vr-in-runtime/2250596 "2024-12-30T15:10:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ProbyTheProbe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ProbyTheProbe](https://forums.unrealengine.com/u/ProbyTheProbe)\
**Post date:** [December 30, 2024, 3:10pm UTC](https://forums.unrealengine.com/t/switch-pc-to-vr-in-runtime/2250596/1 "2024-12-30T15:10:36Z")

</div>

Hey,  
I am currently trying to implement a switch from PC to VR in runtime. It’s just someting I need for this project.  
Both the PC and the VR part are working fine when started seperately.

As VR Device I am using the Quest 3, which is connected via cable to the PC.  
For the Unreal Version I have tried using UE 5.4 and 5.5

So far I have been trying to use the “Enable HMD” node.

The problem is that after trying to switch to VR “Enable HMD” returns true and I also get the feedback from my Quest 3 that something happend. On “screen” of the Quest 3 I can see that it opened a new window which says “Loading”. But there is never any progress with the loading and it’s stuck there.

After searching online for a while for a solution I have also tried some console commands but the result was always the same. I am always stuck in “Loading”.  
The commands I have used so far are: “vr.bEnableHMD 1”, “vr.bEnablestereo 1”, “r vsync 0”, “hmd enable”, “stereo on”, “hmd mirror 1”.

Cheers,  
Proby

---

<div class="post-metadata">

**Author:** ![ProbyTheProbe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ProbyTheProbe](https://forums.unrealengine.com/u/ProbyTheProbe)\
**Post date:** [December 31, 2024, 10:28pm UTC](https://forums.unrealengine.com/t/switch-pc-to-vr-in-runtime/2250596/2 "2024-12-31T22:28:08Z")

</div>

Found the solution. Was pretty simple. The “Enable HMD” only works in packaged builds or when running in standalone.  
Since it was a simple feature I was previously testing in viewport.

Maybe this can save someone else some time who is also struggeling with this.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [January 30, 2025, 10:28pm UTC](https://forums.unrealengine.com/t/switch-pc-to-vr-in-runtime/2250596/3 "2025-01-30T22:28:54Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
