# How can I get the current map name?

**URL:** <https://forums.unrealengine.com/t/how-can-i-get-the-current-map-name/283947>\
**Category:** Blueprint\
**Tags:** maps, get, unreal-engine, level, question, Blueprint\
**Created:** [May 22, 2014, 12:26am UTC](https://forums.unrealengine.com/t/how-can-i-get-the-current-map-name/283947 "2014-05-22T00:26:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cristian\_4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cristian\_4](https://forums.unrealengine.com/u/Cristian_4)\
**Post date:** [May 22, 2014, 12:26am UTC](https://forums.unrealengine.com/t/how-can-i-get-the-current-map-name/283947/1 "2014-05-22T00:26:11Z")

</div>

How can I get the current map (level) name? Blueprint, C++ or even console.

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [May 22, 2014, 12:35am UTC](https://forums.unrealengine.com/t/how-can-i-get-the-current-map-name/283947/2 "2014-05-22T00:35:14Z")

</div>

In C++ is

```
()->GetMapName();

```

---

<div class="post-metadata">

**Author:** ![AlwysAnrchy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AlwysAnrchy](https://forums.unrealengine.com/u/AlwysAnrchy)\
**Post date:** [May 30, 2014, 3:01pm UTC](https://forums.unrealengine.com/t/how-can-i-get-the-current-map-name/283947/3 "2014-05-30T15:01:59Z")

</div>

Hi Cristian,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you.

---

<div class="post-metadata">

**Author:** ![Ixiguis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ixiguis](https://forums.unrealengine.com/u/Ixiguis)\
**Post date:** [June 25, 2018, 11:17pm UTC](https://forums.unrealengine.com/t/how-can-i-get-the-current-map-name/283947/4 "2018-06-25T23:17:14Z")

</div>

An addendum: only GetMapName() will add something like UEDPIE prefixed to the level name, if you’re playing in editor. If you want it to always return the “true” level name, regardless of whether it’s PIE or not, use

```
	FString LevelName = ()->GetMapName();
	LevelName.RemoveFromStart(()->StreamingLevelsPrefix);

```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_93a5b4f0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_93a5b4f0](https://forums.unrealengine.com/u/anonymous_user_93a5b4f0)\
**Post date:** [November 12, 2020, 8:47am UTC](https://forums.unrealengine.com/t/how-can-i-get-the-current-map-name/283947/5 "2020-11-12T08:47:35Z")

</div>

Thank you so much. I was frustrated about the same problem.

---

<div class="post-metadata">

**Author:** ![Auticus.Daerk](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/auticus.daerk/32/553980_2.png) [@Auticus.Daerk](https://forums.unrealengine.com/u/Auticus.Daerk)\
**Post date:** [January 27, 2023, 8:09pm UTC](https://forums.unrealengine.com/t/how-can-i-get-the-current-map-name/283947/6 "2023-01-27T20:09:44Z")

</div>

This is the real answer. Thank you.

---

<div class="post-metadata">

**Author:** ![DuneGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dunegames/32/538495_2.png) [@DuneGames](https://forums.unrealengine.com/u/DuneGames)\
**Post date:** [September 29, 2023, 4:26pm UTC](https://forums.unrealengine.com/t/how-can-i-get-the-current-map-name/283947/7 "2023-09-29T16:26:42Z")

</div>

For blueprints it is  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/f/b/cfbefcdb5959a4b81b5cafc012c8b709ca112543.png)
