Hello, I’ve been trying to find a way to get the name of the sub level that my character is in currently, using functions like “Get Current Level Name” only return the root level and not the sub level that I’m in.
Yes the function does work but only for the persistent level for me at least, I’m trying to get the name of the sub level that loaded and am currently in, I’m using level streaming.
Unfortunately, there seems to be no easy way to do this. But by creating a simple actor for this, with a simple collection, you can keep the map name you’re currently in in a variable. Yes, it is a little manual, but I don’t think of any other method.
After everything is ready, you can replace the existing level with the new level name when you hit the collision you created with a blueprint like below.