How to set game mode

Hi

As an experienced C++ programmer but newbie to Unreal 4 - I have just completed the How To UMG tutorial but want to work out how I would set the game mode back to normal having set it to my menu based controller. It seems like there should be a ‘Set Game Mode’ blueprint action - all I can find is how to get the existing game mode as described in the tutorial.

Many thanks in advance and sorry for what will turn out to be such a lame question !

You can’t set a game mode in a blueprint because the game mode would already be active when any blueprint code is run - and you can’t change the game mode of an active map without reloading the map.

Game modes are level specific. If you’ve got your level open, go to the world settings tab (you may need to enable this in the window menu) and change it there. Or you can change the project default setting in the project options - if this is how you did in the first place. There’s also an option on the dropdowns somewhere (the big buttons like compile, etc.) I forget exactly which one has it.

Thanks for replying so quickly - I think I am getting my head around Game Modes now. So the question is - from the tutorial example - how do I return to being able to move around the level and ditch the HowTo_UMGGameMode settings having used the menu to start a new game ?

So you’ve got a map with your umg game mode and you want to use it to change to a level where you can fly around again? Like a load map button?

Or you want to completely get rid of the game mode and not use it at all?

Not sure if my screen grab reply worked ! - I want to know what I would do ‘following the tutorial’ when I press the new game button.

worked that time ! lol

Thanks for your patience - Its tricky asking a question when you don’t know the question ! - The tutorial gets you to produce the blueprint above. What I want to figure out is what do I do once I click the play game button - do I create a new world class ? and select it in the Change Menu Widget ?

Create a new map using the standard game mode (see how to change it in my first reply.) Use the ‘open level’ node to change to that level.

A new world class?

Create a new map (in the menu at the top-left,) save it and then use its name in the “open level” node.

That works great - thanks for helping out