Issue with level opening

So I have tried creating the main menu using this example shown here → https://docs.unrealengine.com/latest/INT/Engine/UMG/QuickStart/4/index.html, but when I clicked on the button nothing happened, it just stayed there. All other keys are working fine.

I even tried doing this, but still the same problem.

I have also tried adding this in DefaultEngine.ini

[AlwaysCookMaps]
 +Map=/Game/FirstPersonBP/Maps/FirstPersonExampleMap

The version in the docs and the example with the “Make Literal Name” node both work for me. I can not reproduce your error.

I have tried it, here is the project link could you test it on your end?

Thanks.

sure but tomorrow. (already 5am here)

Yes. Please.

Ok I could find your error now.

The main problem is, that you open your MainMenu Widget in the FirstPersonExampleMap and not in another Level.

To show you what realy happens when you start the game is the following:

  1. It loads the FirstPersonExampleMap map. This is configured in Project Settings > Maps & Modes > Default Maps > Editor Startup Map.

  2. It loads the MainMenu widget as configured in the FirstPersonExampleMap Level Blueprint (with the BeginPlay Event).

  3. When you now click the Play Button it loads the FirstPersonExampleMap again. This reload of the map triggers the BeginPlay Event of the Level Blueprint again executing the step 2. from above again.

This loop makes it look like nothing happings but this is incorrect. To fix this you have to create a new Level i.e. MainMenuLevel. Configure this as startup map in the project settings and let it load the MainMenu widget and remove the MainMenu widget from the FirstPersonExampleMap. Then everything will work as you intend it.

The creation of a main menu level is documented in the first page of the tutorial you linked in your question:
https://docs.unrealengine.com/latest/INT/Engine/UMG/QuickStart/1/index.html

greetings

Thank you for pointing that out, I did follow that but forgot to take the level into consideration.