# \[VIVE\] Switch between VR mode and non VR mode during gameplay

**URL:** <https://forums.unrealengine.com/t/vive-switch-between-vr-mode-and-non-vr-mode-during-gameplay/81178>\
**Category:** XR Development\
**Tags:** unreal-engine\
**Created:** [December 22, 2016, 3:09pm UTC](https://forums.unrealengine.com/t/vive-switch-between-vr-mode-and-non-vr-mode-during-gameplay/81178 "2016-12-22T15:09:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_9cecf432](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9cecf432](https://forums.unrealengine.com/u/anonymous_user_9cecf432)\
**Post date:** [December 22, 2016, 3:09pm UTC](https://forums.unrealengine.com/t/vive-switch-between-vr-mode-and-non-vr-mode-during-gameplay/81178/1 "2016-12-22T15:09:21Z")

</div>

Hi all,  
I am found many answers how to do this with Oculus (with HMD mirror etc.), but is there any solution how to switch between VR mode and standard non VR mode in game play on HTC Vive?

Thanks a lot for any help or link =o).

---

<div class="post-metadata">

**Author:** ![SeanJD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SeanJD](https://forums.unrealengine.com/u/SeanJD)\
**Post date:** [February 19, 2017, 3:21pm UTC](https://forums.unrealengine.com/t/vive-switch-between-vr-mode-and-non-vr-mode-during-gameplay/81178/2 "2017-02-19T15:21:33Z")

</div>

> [@Isik Gosik;641579](#):
>
> Hi all,  
> I am found many answers how to do this with Oculus (with HMD mirror etc.), but is there any solution how to switch between VR mode and standard non VR mode in game play on HTC Vive?
> 
> Thanks a lot for any help or link =o).

Hi Isik - did you find out how to do this? Or does anyone else know and can post an answer?  
I would have thought something like this would be better documented but a lot of people are asking the same question on the forum and I can’t seem to find the answer anywhere !

I know you can launch the engine with vr on or off using -vr in the console command when launching the app/game. But I want to be able to set this at runtime using code/blueprint. Is it possible?

---

<div class="post-metadata">

**Author:** ![YuriNK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yurink/32/1194511_2.png) [@YuriNK](https://forums.unrealengine.com/u/YuriNK)\
**Post date:** [February 19, 2017, 4:50pm UTC](https://forums.unrealengine.com/t/vive-switch-between-vr-mode-and-non-vr-mode-during-gameplay/81178/3 "2017-02-19T16:50:26Z")

</div>

ExecuteConsoleCommand(stereo on/stereo off)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9cecf432](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9cecf432](https://forums.unrealengine.com/u/anonymous_user_9cecf432)\
**Post date:** [February 20, 2017, 9:25am UTC](https://forums.unrealengine.com/t/vive-switch-between-vr-mode-and-non-vr-mode-during-gameplay/81178/4 "2017-02-20T09:25:28Z")

</div>

Hi,  
I found nothing. This command below is working only for Oculus, not HTC Vive.

> [@;668816](#):
>
> ExecuteConsoleCommand(stereo on/stereo off)

---

<div class="post-metadata">

**Author:** ![YuriNK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yurink/32/1194511_2.png) [@YuriNK](https://forums.unrealengine.com/u/YuriNK)\
**Post date:** [February 20, 2017, 9:41am UTC](https://forums.unrealengine.com/t/vive-switch-between-vr-mode-and-non-vr-mode-during-gameplay/81178/5 "2017-02-20T09:41:19Z")

</div>

It should work for Vive. Remember you can turn on stereo rendering only in a packaged project or in a VR Preview.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3b4c8d46](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3b4c8d46](https://forums.unrealengine.com/u/anonymous_user_3b4c8d46)\
**Post date:** [March 22, 2017, 1:23pm UTC](https://forums.unrealengine.com/t/vive-switch-between-vr-mode-and-non-vr-mode-during-gameplay/81178/6 "2017-03-22T13:23:39Z")

</div>

I am assume you guys have solved it, but in case you haven’t then here is my solution to switch between pawns.

Player controller:  
First create 2 functions “VrConsoleCommands” and “NonVrConsoleCommands”

 ![TqvbZ68.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/1/d1f4303358c864864ad5da301ccb6e6936fdfb9a.png)  
 ![uTayXX7.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/4/44fc5dbb27c3c917e81feb1bce350c40aab5b3ac.png)

Then in the player controller create an event to handle the vr/pawn switch

 ![Ow3Efgm.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/4/84d1f5cc3c632cbeec195395c8816842c4c93332.png)  
 ![0y2wJVo.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/5/75947b0dc3c89987f638a632717ca72d538d5463.jpeg)  
 ![AYyghEe.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/7/2749ea02558148ec3bd4fe675a6e6d254681e120.png)

And here is the game mode

 ![r9KIiJu.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/4/4474c492118aeb03b5d300255d62d69ce2d5ddee.png)  
 ![pxDaWbs.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/4/54717d9e7260645e027cce8f7f89c7653d802a31.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2832b5c1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2832b5c1](https://forums.unrealengine.com/u/anonymous_user_2832b5c1)\
**Post date:** [September 14, 2017, 1:26pm UTC](https://forums.unrealengine.com/t/vive-switch-between-vr-mode-and-non-vr-mode-during-gameplay/81178/7 "2017-09-14T13:26:19Z")

</div>

Hi, thanks for your script but the truth is that I have not heard much, where you get the VrPawn, defaultPawn and Old Pawn? The same doubt for the GetSpawnTransform … and the variable Specific Player that type of variable is. I just can not connect it and I’m a little lost. Thank you very much!

---

<div class="post-metadata">

**Author:** ![IslandPlaya](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/islandplaya/32/1194500_2.png) [@IslandPlaya](https://forums.unrealengine.com/u/IslandPlaya)\
**Post date:** [September 14, 2017, 8:29pm UTC](https://forums.unrealengine.com/t/vive-switch-between-vr-mode-and-non-vr-mode-during-gameplay/81178/8 "2017-09-14T20:29:11Z")

</div>

> [@](#):
>
> I am assume you guys have solved it, but in case you haven’t then here is my solution to switch between pawns.

Very useful. Thanks for sharing!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3b4c8d46](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3b4c8d46](https://forums.unrealengine.com/u/anonymous_user_3b4c8d46)\
**Post date:** [July 7, 2018, 7:21pm UTC](https://forums.unrealengine.com/t/vive-switch-between-vr-mode-and-non-vr-mode-during-gameplay/81178/9 "2018-07-07T19:21:08Z")

</div>

> [@anonymous\_user\_2832b5c1](#):
>
> Hi, thanks for your script but the truth is that I have not heard much, where you get the VrPawn, defaultPawn and Old Pawn? The same doubt for the GetSpawnTransform … and the variable Specific Player that type of variable is. I just can not connect it and I’m a little lost. Thank you very much!

I’m sorry this reply is about a year old.  
The pawns you are referring to are variables I set in the code.

---

<div class="post-metadata">

**Author:** ![Rook\_ie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rook\_ie](https://forums.unrealengine.com/u/Rook_ie)\
**Post date:** [August 27, 2025, 1:22am UTC](https://forums.unrealengine.com/t/vive-switch-between-vr-mode-and-non-vr-mode-during-gameplay/81178/10 "2025-08-27T01:22:38Z")

</div>

In the Player Controller, under the enable/disable hmd and “these 2 are relevent for spawning the pawns”, where are you getting the green self node to link to the vr console commands and request gm to spawn pawn? Any way I can get a example template with this blueprint?
