# Looking to make a toggle for my FP and VR character

**URL:** <https://forums.unrealengine.com/t/looking-to-make-a-toggle-for-my-fp-and-vr-character/2305042>\
**Category:** XR Development\
**Tags:** unreal-engine, question\
**Created:** [January 27, 2025, 12:40am UTC](https://forums.unrealengine.com/t/looking-to-make-a-toggle-for-my-fp-and-vr-character/2305042 "2025-01-27T00:40:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Medicbobs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Medicbobs](https://forums.unrealengine.com/u/Medicbobs)\
**Post date:** [January 27, 2025, 12:40am UTC](https://forums.unrealengine.com/t/looking-to-make-a-toggle-for-my-fp-and-vr-character/2305042/1 "2025-01-27T00:40:38Z")

</div>

I’ve got a first person character and a VR character setup. Both work, but I was to be able to switch between the 2 when I want. I also want the characters to stay in the same place when swapping. Can you guys help?? This is what have so far in my FP character blueprint.

> **[FP and VR character swap posted by noplaymaker | blueprintUE | PasteBin For...](https://blueprintue.com/blueprint/te84l3ic/)**
>
> No description provided

---

<div class="post-metadata">

**Author:** ![t-hoshino](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@t-hoshino](https://forums.unrealengine.com/u/t-hoshino)\
**Post date:** [January 29, 2025, 5:13am UTC](https://forums.unrealengine.com/t/looking-to-make-a-toggle-for-my-fp-and-vr-character/2305042/2 "2025-01-29T05:13:27Z")

</div>

The VR and switching process is available in the Collab Viewer of the engine template for reference.

> **[Interacting with the Collab Viewer in Unreal Engine | Unreal Engine 5.5...](https://dev.epicgames.com/documentation/en-us/unreal-engine/interacting-with-the-collab-viewer-in-unreal-engine)**
>
> Describes how to control the camera and interact with content at runtime in the Collab Viewer Templates.

---

<div class="post-metadata">

**Author:** ![t-hoshino](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@t-hoshino](https://forums.unrealengine.com/u/t-hoshino)\
**Post date:** [January 29, 2025, 5:39am UTC](https://forums.unrealengine.com/t/looking-to-make-a-toggle-for-my-fp-and-vr-character/2305042/3 "2025-01-29T05:39:58Z")

</div>

Specifically, the ChangePawn function in `/Game/CollaborativeViewer/UMG/GameMenu/NavigationButton` handles the change.

The process flow of saving the Transform of the current Pawn, spawning a new Pawn with that Transform, and deleting the old Pawn is roughly the same as the attached implementation.

You can run PIE and confirm switching with P and I on the keyboard.

In addition, the Pawn for VR executes the EnableHMD function to switch to VR mode.  
This is done with the following PossesedVRPawn function.  
`/Game/CollaborativeViewer/Blueprints/Pawn/VR/BP_VRPawn`

---

<div class="post-metadata">

**Author:** ![Medicbobs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Medicbobs](https://forums.unrealengine.com/u/Medicbobs)\
**Post date:** [February 17, 2025, 4:35am UTC](https://forums.unrealengine.com/t/looking-to-make-a-toggle-for-my-fp-and-vr-character/2305042/4 "2025-02-17T04:35:41Z")

</div>

Thanks so much for the response. I’m familiar with that way of switching. I’m talking about in game. I have a VR on with controls weapons and everything. I want to be able to push a button in game and go into VR if I want to, not just the viewport.
