So I have been following the [“Scripting the Main Menu” Documentation][1] and everything works fine except for the Play Game button which loads my chosen level.
What occurs is that I play it in the editor, click the button and for a split second it appears to launch the map but then switches back to the menu.
Here are some screenshots of the relevant blueprints. They are identical to the ones used in the Documentation, so the issue must be elsewhere.
So I guess my question is where to start looking, because I was unable to find any solid suggestion with good old google!
I guess the way I saw it working was this level load, could be in the same level it’s loading which doesn’t make much sense. Seems you have to have another level or else it will just open the menu again which is the issue I’m having and it makes sense.
However, I made a new level for the main menu… and implemented the exact BP Script as above; but it continues to simply load the menu after playing the level for a split second!
I must have some sort of logic error, but have no clue what it could be!
`When you click play ,the event begin play its called and its working like a loop.
You need to create a level only for the main menu and when click play take it to other level.
However I did figure that out myself and I commented it above last night. (You may have missed it)
What is strange is yesterday it was NOT working at all, even with the separate menu level. I would click play and it would just open the level for a second and go back the the menu.
Though today I just tried it again (for my minds sake, before commenting) and it worked! Maybe it was the computer being restarted (I had restarted Unreal a few times to test it), so this could be a small bug.
Thanks for the response though! What you suggested technically was the fix!