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"

Unloaded level still visible after loading next level

Player starts game on level00switch this loads fine, then player moves to the next level01hell this loads fine, then going back to level00switch after death this loads fine, but when going back to level01hell a second time, level00switch does not unload. So I have both level00switch and level01hell visible. I cannot figure out what is wrong in my setup, as everything else is working as expected, any help is appreciated.

Here are the setup BPs

alt text

alt text

alt text

Product Version: UE 4.16
Tags:
more ▼

asked Jun 04 '17 at 06:27 PM in Blueprint Scripting

avatar image

ajbombadill
91 11 16 17

avatar image Irakli Jun 04 '17 at 06:48 PM

when you start playing the first time, do you start playing from level00switch, or is it a steamed level inside another level?

avatar image ajbombadill Jun 04 '17 at 07:05 PM

I start on the first sublevel which is level00switch, the persistent level is blank except for the EventBeginPlay node

avatar image Irakli Jun 04 '17 at 07:09 PM

yes, but when you start from the very beginning do you open level00switch or is it part of another level? (E.g. level00switch is actually a sublevel of MainMap level or something similar)

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

1 answer: sort voted first

I think your problem is that in the very beginning you open a main persistent map that contains level00switch, level01hell and other level as their sublevels. But after you respawn the player you OPEN level00switch (3rd screenshot "open level" node). This makes the contents of level00switch act as persistent level instead of streamed level.

Solution: You should open the main persistent level (in your case the name is LevelPersistent) and load/stream level00switch inside it when you respawn (you are probably already loading/streaming it). This will enable level00 to be unloaded when going to level01.

TL;DR: Change the Open level node in your third screenshot to open LevelPersistent level instead of level00switch.

more ▼

answered Jun 04 '17 at 07:26 PM

avatar image

Irakli
458 15 6 25

avatar image ajbombadill Jun 04 '17 at 07:30 PM

OMG! that fixed it!! THANK YOU!!!

avatar image Irakli Jun 04 '17 at 07:41 PM

My pleasure, good luck good sir

(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