How to run the level blueprint code when opening a new level?
Hi, I'm working on the Main Menu for my project using UMG. I have one empty level that I used for my main menu and another game level that I want to load when I click on the 'New Game' button. When I click on the 'New Game' button, I remove the main menu from viewport and use 'Open Level' to load my new game level. However I noticed that doing so does not load the level blueprint of the new level. When I load the game level directly from editor, this issue does not crop up. So it's definitely a result of the transition from my main menu level to the game level. Also this issue seems to be happening only when I run the game in the editor. The game runs fine when I run it in standalone mode.
So I would like to know if there is some way I could load the level blueprint for a new level, when I'm opening the said new level from another level?
asked Feb 10 '15 at 11:36 AM in Using UE4
We might need more specific info on what you're trying to do. If your new map has a BeginPlay node, it indeed should always run when that level is loaded. You can't access any code from another map than the one you're in as far as I know.
answered Feb 10 '15 at 12:45 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here