Hello everybody,
I’m working on a project for my class that involves creating 2 levels and a Main Menu level. When I open Unreal, both of my levels are working perfectly but when I open my Main Menu level, my first level is just a black screen. Everything in the editor is gone even though it was all there before I opened this main menu level. Level 2 works perfectly fine and I can play on it with or without the main menu level. But Level 1 never comes back even though the level is still down in the asset bar. I’ll post a screenshot in hopes that helps give more detail
By looking at the world ouliner, your level 1 seems to be empty. Do you use level streaming to load assets on it? You want to add lights, directional lights, sun sky, fog, and a floor plane. Can you please show your level 1 when opened directly?
Hello, here is the screenshot for when I first open Unreal. If I press play from level 1 at this point it loads perfectly and allows me to play. It does seem like after I load the MainMenu level and play that, which has 3 buttons, for level 1, level 2, and to quit, but after clicking to open level 1 it’s a black screen and there’s nothing in the world outliner. I’m still rather new to all this so I hope this makes sense.
Hi there,
How do you set the logic to load level 1? Are you using “Open Level by Name” and setting the name exactly as your level 1? Can you please show screenshots?
Hi,
Thanks for helping me out! I am using Open Level by Name and have both Level1 and Level2 set up the same. I’ve even gone back and renamed the level just to make sure there weren’t any extra spaces or anything. But still level1 is the only one that doesn’t work. Here’s the screenshot
Also if it helps any.
I can load level1 when I first open unreal. But if I open my MainMenu level or my Level2 without even playing it, and then try to load level1 again, it shows the black screen with no actors or anything. The levels have a timer and a chair count(we had to make flaming chair bullets) and those 2 features work perfectly even with the black screen.
Hi there,
Thank you for sharing the code. From level1, one thing got my attention was:
Why you have ThirdPersonExampleMap as world name? It’s just the old name? Or you still have it in your project content browser? Perhaps the light assets were added from it.
Also, can you show the section Maps and Modes from your project settings? Can you check what is assigned as your Editor Startup Map and Game Default Map?
This project was done from tutorials and we had to open the ThirdPersonExampleMap and start from editing there. Would that have any effect on the opening of Level1 and is there a way to change it if needed to?
Also, here is the screenshot from Project settings:
Hello L.F.A,
I also noticed something in my content browser that you can see in my initial post, but there is a Level2_BuildData but not one for Level1. Could that be the reason for the level going black? If so, do you know how I can create that? I honestly don’t remember doing anything special for level2 to create that build data so it’s a little confusing for me.
Thanks again for the help!
Sorry for the back to back replies but I figured out why it wasn’t opening. It was because of the Map name, since I started off editing it from the example map Level1 does not exist. I changed the button to open up the example map and it opened correctly. So it seems I’ll just have to recreate the entire level and it will work.
Thank you so much for all the help!!!