# How do I switch between game modes?

**URL:** <https://forums.unrealengine.com/t/how-do-i-switch-between-game-modes/287048>\
**Category:** Blueprint\
**Tags:** gamemode, unreal-engine, Blueprint, question\
**Created:** [June 30, 2014, 1:01am UTC](https://forums.unrealengine.com/t/how-do-i-switch-between-game-modes/287048 "2014-06-30T01:01:46Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![srkibria](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@srkibria](https://forums.unrealengine.com/u/srkibria)\
**Post date:** [June 30, 2014, 1:01am UTC](https://forums.unrealengine.com/t/how-do-i-switch-between-game-modes/287048/1 "2014-06-30T01:01:46Z")

</div>

I currently have 2 different game modes in my project. I want to be able to switch between the two of them by a button press while pausing the inactive game mode. How do I do this? Any help would be great.

---

<div class="post-metadata">

**Author:** ![envenger](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@envenger](https://forums.unrealengine.com/u/envenger)\
**Post date:** [June 30, 2014, 10:37am UTC](https://forums.unrealengine.com/t/how-do-i-switch-between-game-modes/287048/2 "2014-06-30T10:37:47Z")

</div>

There is a

```
SetGameMode(const FString& MapName, const FString& Options, const FString& Portal);

```

Inside the gamemode.h class. Although i am not sure how to use it. I am searching the same it will be helpful if some one points it out.

---

<div class="post-metadata">

**Author:** ![srkibria](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@srkibria](https://forums.unrealengine.com/u/srkibria)\
**Post date:** [July 1, 2014, 1:37am UTC](https://forums.unrealengine.com/t/how-do-i-switch-between-game-modes/287048/3 "2014-07-01T01:37:41Z")

</div>

Thanks I’ll try to find out more.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [July 1, 2014, 5:44pm UTC](https://forums.unrealengine.com/t/how-do-i-switch-between-game-modes/287048/4 "2014-07-01T17:44:25Z")

</div>

Hi srkibria,

What exactly are you trying to accomplish? If you are trying to make a start or pause menu there are other ways to do this.

---

<div class="post-metadata">

**Author:** ![srkibria](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@srkibria](https://forums.unrealengine.com/u/srkibria)\
**Post date:** [July 1, 2014, 9:29pm UTC](https://forums.unrealengine.com/t/how-do-i-switch-between-game-modes/287048/5 "2014-07-01T21:29:19Z")

</div>

There are actually 2 separate game modes. Both of them behave differently in our game, so it can’t be handled using a pause menu, I think. I want to be able to switch between them. I’m not comfortable talking about the specific details on answerhub, but I’d be comfortable talking about it over a PM.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [July 3, 2014, 1:50pm UTC](https://forums.unrealengine.com/t/how-do-i-switch-between-game-modes/287048/6 "2014-07-03T13:50:25Z")

</div>

I messaged you by PM on the forums. Please feel free to continue troubleshooting it there when you have time.

Thanks, TJ

---

<div class="post-metadata">

**Author:** ![srkibria](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@srkibria](https://forums.unrealengine.com/u/srkibria)\
**Post date:** [July 3, 2014, 7:15pm UTC](https://forums.unrealengine.com/t/how-do-i-switch-between-game-modes/287048/7 "2014-07-03T19:15:12Z")

</div>

Sent you a PM.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [July 3, 2014, 7:37pm UTC](https://forums.unrealengine.com/t/how-do-i-switch-between-game-modes/287048/8 "2014-07-03T19:37:54Z")

</div>

UE4 doesn’t currently have a way to change the GameMode during play. The only way is to change to another level.

However, most level changes can be made through the level blueprint and you can collect and store data here as well.

The GameMode setup in UE4 means something different than the game mode concept you think of in the design process. You can basically implement all of your game rules, menus, etc. here and use blueprints or code to manipulate and/or use what you need.

> **[Game Mode and Game State](https://docs.unrealengine.com/5.1/en-US/game-mode-and-game-state-in-unreal-engine/)**
>
> Overview of the Game Mode and Game State

Thanks, TJ

---

<div class="post-metadata">

**Author:** ![Dadlord36](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dadlord36](https://forums.unrealengine.com/u/Dadlord36)\
**Post date:** [June 30, 2016, 10:02am UTC](https://forums.unrealengine.com/t/how-do-i-switch-between-game-modes/287048/9 "2016-06-30T10:02:52Z")

</div>

You can set certain Game Mode for each map! Load Map = Change Game Mode.

---

<div class="post-metadata">

**Author:** ![SR-15](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sr-15/32/1082205_2.png) [@SR-15](https://forums.unrealengine.com/u/SR-15)\
**Post date:** [May 28, 2024, 6:28am UTC](https://forums.unrealengine.com/t/how-do-i-switch-between-game-modes/287048/10 "2024-05-28T06:28:46Z")

</div>

> **[Change Game Mode at runtime posted by BoocherDev | blueprintUE | PasteBin For...](https://blueprintue.com/render/k1_hlfgb/)**
>
> No description provided

Open Level with “game=GameModeLocation”
