x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Open Level Node opens current level.

I am making a pause menu for a university project game. The exit to main menu button I have placed in the widget for some reason loads my main menu back for only 1 second, then goes back to the level but unable to move. I just want the button to reload the main menu again.

Does anyone have an idea for this?

Many thanks in advance. alt text

Product Version: UE 4.17
Tags:
bpsave4.png (61.6 kB)
more ▼

asked Oct 27 '17 at 01:51 PM in Blueprint Scripting

avatar image

Kmanning5
1 2 3

avatar image sandorvasas Feb 10 '19 at 08:52 PM

This happens to me only on android. If I change the Level file's name and rewrite the level name in OpenLevel to that, it works. It's a bug of UE.

On the other hand I can't keep rewriting level names every time I need to build, so it'd be great if this got resolved.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Kmanning5,

Transitioning from the paused menu to the main menu took me some time to figure out. It has its own system in a way because you have to have a set of Boolean values that check certain conditions before loading the correct thing. My setup maybe a little more complex then yours but when the player presses the main menu button from the pause menu several things happen. The show main menu Boolean is set true and the show introduction screens set to false since the player didn't exit the game per-say, just going to the main menu so no need to show logos again.

Next these Boolean values are saved inside a Save Game Object on the hard drive so that when the level restarts it reloads that save game into the player HUD object and the first thing it does is checks the show main menu, show introductions Boolean to know which UMG to show. Technically when the player is viewing the main menu they are already loaded into the level but the main menu screen is on top of the player HUD (health, ammo, inventory, etc..). So when the player chooses to load a game the Boolean values are set again and the main menu is set hidden and the player saved location is loaded in to set them in the correct spot on the map when they saved the game.

I know this is probably way overboard for your setup but I hope it gave you an idea for how this works and what you might run into later on down the line. Someone else might give you a faster answer but I wanted to delve a little deeper on the concepts. Below is a screen cap of part of my level blueprint for the main persistent level, you can see how I save the values.

reload

reloadmainmenu.png (303.1 kB)
more ▼

answered Oct 27 '17 at 03:36 PM

avatar image

jimd667
383 9 14 20

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

That happens if the target level name is invalid. Looks like you might be missing a forward slash and possibly the full path at the beginning of your string. Mine, for example, is "/Game/Maps/LoadMain"

more ▼

answered Dec 01 '17 at 01:47 PM

avatar image

Chris Payne
75 5 9 9

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question