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. 

Unreal Engine : 2nd level plays when on menu level

So I have the directory Content and inside of it i have the folders UI and Levels.

UI = Where my widgets are saved Levels = Where my maps are stored.

When i press play the menu loads and is working like it's supposed to but my second level starts playing inside of my main menu.

alt text

A this is a regeneration print string for my players stamina that shouldnt be running wile in the MainMenu level.

alt text

Inside of my MenuLevel blueprint

alt text

Inside my FirstPersonBP

alt text

Product Version: UE 4.19
Tags:
capture.png (91.5 kB)
capture.png (29.4 kB)
capture.png (84.2 kB)
capture.png (58.2 kB)
more ▼

asked Jun 28 '18 at 02:43 PM in Blueprint Scripting

avatar image

VexagonYT
6 1 3

avatar image Velrin Jun 28 '18 at 02:48 PM

Is TestWorld a sub level inside your MainMenu world?

Is the stamina/health UI part of the main menu widget?

Can you show us where the MainMenu level is supposed to be loaded?

avatar image VexagonYT Jun 28 '18 at 02:56 PM

Is TestWorld a sub level inside your MainMenu world? Its a separate world.

Is the stamina/health UI part of the main menu widget? The stamina system is located in my firstpersonBP

Can you show us where the MainMenu level is supposed to be loaded? Not sure what you mean by that but the MainMenu is supposed to load first because it runs the script to open the menu.

avatar image Velrin Jun 28 '18 at 03:01 PM

So I'm assuming that MainMenu level is marked as the entry level in your project setting? Which is why it loads first and creates the main menu blueprint.

Where in your blueprints are you loading the TestWorld level? In an OnClicked event for your "Play Game"button?

avatar image VexagonYT Jun 28 '18 at 03:04 PM

So in my UI folder i have a widget called MainMenu and in it i have a on Clicked event:

alt text

StartGame = Button Id

capture.png (20.0 kB)
avatar image Velrin Jun 28 '18 at 03:08 PM

Okay, so you probably confirmed that this event was not being triggered.

Aside from the Stamina/Health UI showing, how do you know that TestWorld is running? Is it possible that the widget for the Stamina/Health UI is being created and displayed while the MainMenu level is running and not the TestWorld?

avatar image Velrin Jun 28 '18 at 03:09 PM

I'm asking a lot of questions, but its the only way to filter out possible issues without looking at the project itself.

avatar image VexagonYT Jun 28 '18 at 03:18 PM

I edited my MainMenu widget and reoved the background, My TestWorld has objects and stuff.

avatar image VexagonYT Jun 28 '18 at 03:19 PM

alt text

capture.png (91.7 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I changed the GameMode Pawn to NONE, now it works! Thanks for helping!

more ▼

answered Jun 28 '18 at 03:23 PM

avatar image

VexagonYT
6 1 3

(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