# How To Get Current Sub Level Name

**URL:** <https://forums.unrealengine.com/t/how-to-get-current-sub-level-name/461789>\
**Category:** Blueprint\
**Tags:** Level-Streaming, sub-level, unreal-engine, question, Blueprint, slot-name\
**Created:** [February 26, 2020, 6:22am UTC](https://forums.unrealengine.com/t/how-to-get-current-sub-level-name/461789 "2020-02-26T06:22:59Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jinkuu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jinkuu](https://forums.unrealengine.com/u/Jinkuu)\
**Post date:** [February 26, 2020, 6:22am UTC](https://forums.unrealengine.com/t/how-to-get-current-sub-level-name/461789/1 "2020-02-26T06:22:59Z")

</div>

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.

Is there any way to do this?

Thank you for the help.

---

<div class="post-metadata">

**Author:** ![anon63450084](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon63450084](https://forums.unrealengine.com/u/anon63450084)\
**Post date:** [February 26, 2020, 10:23am UTC](https://forums.unrealengine.com/t/how-to-get-current-sub-level-name/461789/2 "2020-02-26T10:23:25Z")

</div>

I try this out and it works very well, so with this function i get my Level name^^

---

<div class="post-metadata">

**Author:** ![Jinkuu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jinkuu](https://forums.unrealengine.com/u/Jinkuu)\
**Post date:** [February 26, 2020, 7:44pm UTC](https://forums.unrealengine.com/t/how-to-get-current-sub-level-name/461789/3 "2020-02-26T19:44:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![SertacOgan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sertacogan/32/970490_2.png) [@SertacOgan](https://forums.unrealengine.com/u/SertacOgan)\
**Post date:** [February 27, 2020, 6:29am UTC](https://forums.unrealengine.com/t/how-to-get-current-sub-level-name/461789/4 "2020-02-27T06:29:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Jinkuu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jinkuu](https://forums.unrealengine.com/u/Jinkuu)\
**Post date:** [February 27, 2020, 7:52am UTC](https://forums.unrealengine.com/t/how-to-get-current-sub-level-name/461789/5 "2020-02-27T07:52:42Z")

</div>

If you can could you elaborate on how to do that please? the only collection I’m aware of is the one in the content browser.

---

<div class="post-metadata">

**Author:** ![SertacOgan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sertacogan/32/970490_2.png) [@SertacOgan](https://forums.unrealengine.com/u/SertacOgan)\
**Post date:** [February 27, 2020, 8:12am UTC](https://forums.unrealengine.com/t/how-to-get-current-sub-level-name/461789/6 "2020-02-27T08:12:28Z")

</div>

Sure, for this you need a new actor. You can create like this:

![296995-bp-actor.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/b/9bb4ed0c2aa9f81c36c6eb7812303f6dab2b085c.png)

After then, you should add a box collision and click **On Component Begin Overlap**

 ![296996-beginoverlap.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/c/1cc6f8af2fab068a35f45d6772936de569277990.jpeg)

You need to add one string type variable to your character and the actor you created and keep the level names in this variable.

![296997-levelname.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/e/8ee5db6841d3f3b393edd5ac76ff50cb7fbd802f.png)

---

<div class="post-metadata">

**Author:** ![SertacOgan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sertacogan/32/970490_2.png) [@SertacOgan](https://forums.unrealengine.com/u/SertacOgan)\
**Post date:** [February 27, 2020, 8:12am UTC](https://forums.unrealengine.com/t/how-to-get-current-sub-level-name/461789/7 "2020-02-27T08:12:48Z")

</div>

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.

 ![296998-logic.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/8/5/585e70a886611ac2bd1c6fb078075b43ea1ccaab.png)

Finally, you can enter the map name by dragging the actors you created to your scene, adjusting the size from the details tab.

 ![296999-level.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/6/d/b6df386d90881775a714f6b23a17cff81bd994fa.jpeg)

And tadaa, thats it!

 ![297000-result.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/7/7/477d678efa308e36be7e8b683362cf0989d93426.png)

---

<div class="post-metadata">

**Author:** ![Jinkuu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jinkuu](https://forums.unrealengine.com/u/Jinkuu)\
**Post date:** [February 27, 2020, 9:01am UTC](https://forums.unrealengine.com/t/how-to-get-current-sub-level-name/461789/8 "2020-02-27T09:01:06Z")

</div>

Thank you so much!

---

<div class="post-metadata">

**Author:** ![NoboluOotsukaUE](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/noboluootsukaue/32/469262_2.png) [@NoboluOotsukaUE](https://forums.unrealengine.com/u/NoboluOotsukaUE)\
**Post date:** [November 26, 2021, 8:06am UTC](https://forums.unrealengine.com/t/how-to-get-current-sub-level-name/461789/9 "2021-11-26T08:06:23Z")

</div>

here CPP code form sublevelName

> **[How do i get the name of the streaming level that actor is present in.](https://forums.unrealengine.com/questions/565218/how-do-i-get-the-name-of-the-streaming-level-that.html)**
>
> Hello, I would like to make a save/load level loading system and I need to get the level name that the actor is in at that moment. I’ve tried using “Get Current Level Name” function, but it returns the main persistent level name, not the sub-level...

---

<div class="post-metadata">

**Author:** ![markogonzalez84](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@markogonzalez84](https://forums.unrealengine.com/u/markogonzalez84)\
**Post date:** [September 1, 2022, 1:00am UTC](https://forums.unrealengine.com/t/how-to-get-current-sub-level-name/461789/10 "2022-09-01T01:00:47Z")

</div>

Try with this in BP

 ![code](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/3/9/e3965f484ea2c3c9d43dc8e794163f3d224a05fe.png)

---

<div class="post-metadata">

**Author:** ![Slapdash85](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slapdash85](https://forums.unrealengine.com/u/Slapdash85)\
**Post date:** [August 17, 2023, 10:15pm UTC](https://forums.unrealengine.com/t/how-to-get-current-sub-level-name/461789/11 "2023-08-17T22:15:37Z")

</div>

Thankyou! This really helped me

---

<div class="post-metadata">

**Author:** ![TronBar](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TronBar](https://forums.unrealengine.com/u/TronBar)\
**Post date:** [March 23, 2024, 9:59pm UTC](https://forums.unrealengine.com/t/how-to-get-current-sub-level-name/461789/12 "2024-03-23T21:59:08Z")

</div>

Working! Thanks

---

<div class="post-metadata">

**Author:** ![charles\_interface](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/charles_interface/32/725634_2.png) [@charles\_interface](https://forums.unrealengine.com/u/charles_interface)\
**Post date:** [November 28, 2024, 2:49pm UTC](https://forums.unrealengine.com/t/how-to-get-current-sub-level-name/461789/13 "2024-11-28T14:49:49Z")

</div>

> [@SertacOgan](#):
>
> Finally, you can enter the map name by dragging the actors you created to your scene, adjusting the size from the details tab.

waooo… I don’t use UE5 🥶
