I have been working on a single player project for a while and recently started designing a new map/level which went well for the past few weeks but suddenly today all of the actors in the level including the landscape and foliage disappear when I hit play. my character spawns and falls to the z kill zone. I confirmed this with tick function going to show actor location and I can see everything disappearing from the outliner. I am suspicious that it has something to do with level streaming because I was experimenting with that today. I have turned it on and off multiple times before and this never happened. I also noticed that actors would despawn or unload i guess as i got closer to them when i had streaming on before. I obviously do not know how to use it yet but does anyone know what I may have done to cause this or if this is some sort of bug?
UPDATE: I duplicated the map with the issue and the copy of it had the same issue. even after deleting all actors in the level besides the landscape and foliage in case a blueprint was running and causing the issue. then I duplicated the level that still works correctly and the copy of that map also had the same issue. This leads me to believe that it is not just a setting in the new map.
Hey there @AlphaDeltaChair1! Does your player start intersect the landscape? This could cause a correct collision setup character to fall through the world. Alternatively if you have no player start setup, this could mean your world center is too low.
Thank you for the help. I do have a character start setup which worked fine for the past few weeks but I believe that it is being unloaded/destroyed/whatever it may be along with all other actors in my world causing the character to spawn at 0,0,0 and then fall from there. I have been able to spawn actors from the character blueprint which will then stay in the world but all of the actors I have in the level from the editor are gone when I hit play.
In the outliner, do all the objects still exist? If you press f8 then go to the outliner, click one of the actors left, can you then press F to go to it’s location?
Where location wise is your map? As by default things will be destroyed if too far from the world origin, or if you’re using world partition may not be streamed in if not force loaded.
picture 1: in editor. level can be seen and actors can be seen in the outliner.
picture 2: hit play or simulate and everything disappears.
picture 3: only remaining things are at 0,0,0 but only default things.
No, the objects dissapear from the outliner as well. when i double click or press f to find the spectator pawn which does show up in the outliner as shown in the picture above, it is at 0,0,0 along with those other things. i checked my kill z and it does not seem to be causing the problem. I made it farther away to make sure.
The world partition/level streaming is my theory as I do not know how to use it yet and i believe that I was experimenting with it recently. I did attempt to use the open level and load level nodes on begin play in the level blueprint which I believe caused a loop. I think that this would not work anyways because I am using the open level by object reference node from my title screen map to choose the gameplay maps. I have also turned level streaming off.
That’s interesting! Anything disabled via streaming is still usually visible in the outliner but is greyed out and has an (unloaded) tag. Though we’ll check that first anyway, then maybe kill distance.
Head into your world settings and check for World Partition Setup:
If it’s there, we’re gonna need to go over to the World Partition Window (if it’s there, otherwise go to the top and open it via the Window bar) then box select all of your level then right click and Load it.
Thank you again for the continued help! I followed those instructions and loaded everything in the level but this did not solve the issue. these screen shots are me going through the process. I had level streaming off so I turned it on to do this. These also show my kill z settings if you would like to take a look at those as well.
I finally got it fixed. I noticed this error in the message log. I then went and added a grid to the grid array in my world partition settings and then it started working. I even turned off level streaming after this and everything loads in as it should. I guess that it has to have at least 1 grid even if level streaming is off?