I have multiple streaming levels and to save game progress I need to get the streaming level names. I can’t figure out what nodes to connect where for me to get the names
Fig 1 - Get Streaming Level to SET LevelName (String Variable in SaveGame) - gives nothing
You have to put the name of the level you want info on into the ‘get streaming level’ node. It returns a reference given a name. The node isn’t there to tell you which level is currently streaming. ( I know it looks like it does ).
Thing is, you already streamed the level in, so you should have a list of levels that are currently streamed.
A good way to do it would just be an array of name. When you stream, add an index, when you unload a level, use the ‘remove’ node.
Thanks for the answer, much appreciated - how do I get the name out of the array into my savegame (zero experience using arrays - can you suggest a good tutorial?).
I know this is an old thread, but I had a similar issue recently in that I was trying to load a UI based on the sub level that was loaded. What I ended up doing was creating an array with my levels in my game mode as a variable, ran that array through a for each loop, from my Array Element I did a Get Stream Level > Is Level Loaded. This was giving me the current Sub Level that was active. I then saved that loaded level into a new Name Variable.
In my UI I did a cast to my game mode, grabbed the loaded level name variable, set a local variable for Active Level, then used that to drive the UI in the HUD based on whatever level I had active at the time.
I have no idea if this was a good way to do it or not, but it works.