# How do I get a reference to the Level Blueprint?

**URL:** <https://forums.unrealengine.com/t/how-do-i-get-a-reference-to-the-level-blueprint/315571>\
**Category:** Blueprint\
**Tags:** custom-event, unreal-engine, level-blueprint, Blueprint, question\
**Created:** [April 19, 2015, 2:46am UTC](https://forums.unrealengine.com/t/how-do-i-get-a-reference-to-the-level-blueprint/315571 "2015-04-19T02:46:25Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [April 19, 2015, 2:46am UTC](https://forums.unrealengine.com/t/how-do-i-get-a-reference-to-the-level-blueprint/315571/1 "2015-04-19T02:46:25Z")

</div>

I have an Actor that has a “time until ready” property.  
I have a GUI, created by the level blueprint, that has a “time until ready” progress bar.  
I would prefer for the object to just tell the level how ready it is, and the level to decide how to display that (such as updating the GUI.)

I understand how I can pass a reference to the GUI to the Actor. But that’s not what I want to do.  
How can I get a reference to the Level from the Actor?  
Or should I use a Custom Event for this?

---

<div class="post-metadata">

**Author:** ![Raidfire.Net](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Raidfire.Net](https://forums.unrealengine.com/u/Raidfire.Net)\
**Post date:** [April 19, 2015, 11:17am UTC](https://forums.unrealengine.com/t/how-do-i-get-a-reference-to-the-level-blueprint/315571/2 "2015-04-19T11:17:46Z")

</div>

Hi,

Cast to the current level is not possible cause each level can be different. Nevertheless if you want to do this, you have to dive deep within C++.

> **[How to get level name in BP?](https://forums.unrealengine.com/questions/122415/how-to-get-map-name-in-bp.html)**
>
> I know that you can do it using C++, but how to do it with blueprints? I'm setting up a save game blueprint and need this to make it work. The idea is to save the level name as a variable, and then load the saved level name when the game is loaded.

But i would not recommend this.

My advice: Keep all your Level BPs empty and use Custom BPs and spawn them when needed. This way you can develop independent of Levels. You can change GameMode and thus load the components that you currently want to use.

The trick, if want to know what level is currently loaded without writing code, is:

1. Create a custom BP (I recommend an Actor BP) and call it for example “LevelMarker”
2. Put this BP into your Level and give it the name of the level where the BP was placed in
3. This BP should exist only one time per level
4. You can now access the current level by “Get all Actors from Class”, the Class is “LevelMarker”
5. Just watch the picture: This tells you how to test or use it

 ![39322-how+do+i+get+a+reference+to+the+level+blueprint1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/0/210c859ba048a09a7513c8adb2cedb8c9aea0a26.jpeg)

Remember: You can do things for several levels by “if then else”, but not select certain parts of the level itself.

Hope that helps 😃

If you do not like this solution and do not want to write code then your “Custom Event” solution is probably the the best.

Cheers 😃

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [April 19, 2015, 1:52pm UTC](https://forums.unrealengine.com/t/how-do-i-get-a-reference-to-the-level-blueprint/315571/3 "2015-04-19T13:52:09Z")

</div>

He should just use the GameState class for this. This class is designed to contain information about the state of the Game and it is reseted for each level.

If he wants to provide level specific information, then he can get the GameState in the LevelBlueprint and set different values.

The GameState can be accessed easily by just searching for “GameState” in a graph. You can create our own GameState Blueprint and set it in the Maps and Nodes or in the Default Settings of you GameMode Blueprint.

You can also have a look at the PlayerState class. You can create your own and set it inside the GameMode Blueprint Default settings (only there. not in the maps and nodes). The GameState contains an array of all PlayerStates if you are running a MultiplayerGame.

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [April 19, 2015, 11:12pm UTC](https://forums.unrealengine.com/t/how-do-i-get-a-reference-to-the-level-blueprint/315571/4 "2015-04-19T23:12:43Z")

</div>

OK, seems like using the level blueprint isn’t that useful, then.  
By the way, what is the single page that tells me the lifetime / reset-times / intended state of each of the GameState, PlayerController, GameMode, and Level classes? (This information may be possible to gather by reading all of the documentation end-to-end… but if someone already did that, everyone would save time, including me 🙂

---

<div class="post-metadata">

**Author:** ![Skos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skos](https://forums.unrealengine.com/u/Skos)\
**Post date:** [August 27, 2015, 8:48am UTC](https://forums.unrealengine.com/t/how-do-i-get-a-reference-to-the-level-blueprint/315571/5 "2015-08-27T08:48:20Z")

</div>

If you want to communicate with the level blueprint from a class blueprint youll need to use an event dispatcher.  
Its the same principle as “cast to level blueprint”

[link](https://www.youtube.com/watch?v=k-MAALv3P-Y)

---

<div class="post-metadata">

**Author:** ![shiwron](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shiwron](https://forums.unrealengine.com/u/shiwron)\
**Post date:** [September 1, 2016, 7:54am UTC](https://forums.unrealengine.com/t/how-do-i-get-a-reference-to-the-level-blueprint/315571/6 "2016-09-01T07:54:54Z")

</div>

Hello!  
In fact this can be done via the BP-Interface.  
In Level BP using the message from the input parameter BPI with Object, and through which pass a reference.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0500cf20](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0500cf20](https://forums.unrealengine.com/u/anonymous_user_0500cf20)\
**Post date:** [September 2, 2016, 10:10pm UTC](https://forums.unrealengine.com/t/how-do-i-get-a-reference-to-the-level-blueprint/315571/7 "2016-09-02T22:10:43Z")

</div>

A fairly easy workaround for this limitation is to create event listeners in your GameMode Blueprint or your Player Blueprint, then bind to / call them from the Level Blueprint.

Since you can get references to these BPs from pretty much any other blueprint (using the “Get GameMode” or “Get Player Pawn/Character” nodes), you can just get a reference to the GameMode or Player (you may have to cast it) in the Level Blueprint, then bind events to the listeners in those blueprints and/or call those listeners.

---

<div class="post-metadata">

**Author:** ![MetricZero](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/metriczero/32/870265_2.png) [@MetricZero](https://forums.unrealengine.com/u/MetricZero)\
**Post date:** [February 13, 2017, 2:30am UTC](https://forums.unrealengine.com/t/how-do-i-get-a-reference-to-the-level-blueprint/315571/8 "2017-02-13T02:30:26Z")

</div>

Thanks for that link man. Solved my issue.

---

<div class="post-metadata">

**Author:** ![irvnriir](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/irvnriir/32/474441_2.png) [@irvnriir](https://forums.unrealengine.com/u/irvnriir)\
**Post date:** [March 22, 2018, 2:05pm UTC](https://forums.unrealengine.com/t/how-do-i-get-a-reference-to-the-level-blueprint/315571/9 "2018-03-22T14:05:08Z")

</div>

wish everyone would stop proposing eventDispatchers like they have anything to do with blueprints communication, they just letting to execute different events in same time, basicaly helpfull in terms of parenting (eventHit and similar things which should execute something for all clild classes and can be used to execute additional scripts in theses classes is actualy eventDispatchers)

---

<div class="post-metadata">

**Author:** ![SFoster07](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sfoster07/32/1069314_2.png) [@SFoster07](https://forums.unrealengine.com/u/SFoster07)\
**Post date:** [December 13, 2018, 2:12pm UTC](https://forums.unrealengine.com/t/how-do-i-get-a-reference-to-the-level-blueprint/315571/10 "2018-12-13T14:12:36Z")

</div>

I made a quick tutorial for this (event dispatcher can help)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/c/23c7e66def125c61002a204dc6000d6b5c3723fd.jpeg "Unreal 4 Event Dispatcher - Talk to level blueprint from Player") ](https://www.youtube.com/watch?v=IbiocEDwosw)

---

<div class="post-metadata">

**Author:** ![rebusb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@rebusb](https://forums.unrealengine.com/u/rebusb)\
**Post date:** [October 4, 2019, 11:45pm UTC](https://forums.unrealengine.com/t/how-do-i-get-a-reference-to-the-level-blueprint/315571/11 "2019-10-04T23:45:46Z")

</div>

> **[Actor Communication](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/ActorCommunication/)**
>
> Overview of the different methods of Actor Communication.

@ilias, Unreal disagrees. Event Dispatchers are clearly considered a form of blueprint communication per the documentation.

---

<div class="post-metadata">

**Author:** ![DidiKoh](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DidiKoh](https://forums.unrealengine.com/u/DidiKoh)\
**Post date:** [April 13, 2022, 2:20am UTC](https://forums.unrealengine.com/t/how-do-i-get-a-reference-to-the-level-blueprint/315571/12 "2022-04-13T02:20:23Z")

</div>

Thank you so much for this, solve my problem

---

<div class="post-metadata">

**Author:** ![paranoio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@paranoio](https://forums.unrealengine.com/u/paranoio)\
**Post date:** [May 8, 2023, 1:40am UTC](https://forums.unrealengine.com/t/how-do-i-get-a-reference-to-the-level-blueprint/315571/14 "2023-05-08T01:40:04Z")

</div>

hello, i also wanted to share the way i reference the level blueprint.  
The main idea is making the level blueprint implement an interface then using variables of that interface in your actors.  
i made a video showing it : [https://www.youtube.com/watch?v=hlre9E3wA3A](https://www.youtube.com/watch?v=hlre9E3wA3A)

I used this method because i got to work in someone else project, with all the code placed in the level blueprint, and it was so much code i just had to find a way to get a direct reference to all the functions and custom methods living in the levelblueprint.

---

<div class="post-metadata">

**Author:** ![MondRubberduck](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mondrubberduck/32/479670_2.png) [@MondRubberduck](https://forums.unrealengine.com/u/MondRubberduck)\
**Post date:** [May 31, 2023, 4:44pm UTC](https://forums.unrealengine.com/t/how-do-i-get-a-reference-to-the-level-blueprint/315571/15 "2023-05-31T16:44:58Z")

</div>

That works, amazing!

---

<div class="post-metadata">

**Author:** ![Lazar\_Alcatrazz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lazar\_Alcatrazz](https://forums.unrealengine.com/u/Lazar_Alcatrazz)\
**Post date:** [November 12, 2023, 9:49am UTC](https://forums.unrealengine.com/t/how-do-i-get-a-reference-to-the-level-blueprint/315571/16 "2023-11-12T09:49:34Z")

</div>

Am a bit late on this one but EPIC Literraly placed event dispatcher in their “blueprint communication” section of the support page. Its also very badly explained, as I also tried to use event dispatcher as a mean of inter blueprint communication :

> **[Actor Communication](https://docs.unrealengine.com/5.2/en-US/actor-communication-in-unreal-engine/)**
>
> Overview of the different methods of Actor Communication.

As you can see on the spreadsheet at the bottom of this page, they propose event dispatcher as a mean of interblueprint communication. Which is dumb because it creates tons of timming issues and the event dispatcher timeframe is very easy to miss by another blueprint. I use custom event instead but they also complicate the code since you sometimes trigger something out of an event and sometimes not.

---

<div class="post-metadata">

**Author:** ![pezzott1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pezzott1/32/1215068_2.png) [@pezzott1](https://forums.unrealengine.com/u/pezzott1)\
**Post date:** [November 12, 2023, 12:13pm UTC](https://forums.unrealengine.com/t/how-do-i-get-a-reference-to-the-level-blueprint/315571/17 "2023-11-12T12:13:10Z")

</div>

> [@Lazar\_Alcatrazz](#):
>
> Which is dumb because it creates tons of timming issues and the event dispatcher timeframe is very easy to miss by another blueprint

What do you mean by timeframe?

---

<div class="post-metadata">

**Author:** ![Lazar\_Alcatrazz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lazar\_Alcatrazz](https://forums.unrealengine.com/u/Lazar_Alcatrazz)\
**Post date:** [December 6, 2023, 10:37pm UTC](https://forums.unrealengine.com/t/how-do-i-get-a-reference-to-the-level-blueprint/315571/18 "2023-12-06T22:37:10Z")

</div>

Meaning that the event dispatcher doesn’t queue or flag which is what I though it would. It fires like a custom event. So you need to make sure the blueprint supposed to receive the dispatched event is valid and active at the moment the dispatcher will fire. In the end I don’t see any use for it as I can use custom events for it.

---

<div class="post-metadata">

**Author:** ![AllGamesSuck](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AllGamesSuck](https://forums.unrealengine.com/u/AllGamesSuck)\
**Post date:** [March 2, 2024, 3:20pm UTC](https://forums.unrealengine.com/t/how-do-i-get-a-reference-to-the-level-blueprint/315571/19 "2024-03-02T15:20:17Z")

</div>

> [@eXi](#):
>
> He should just use the GameState class for this

How exactly is Game State going to bring him the level name, or any information about the level?
