# Loading levels and umg

**URL:** <https://forums.unrealengine.com/t/loading-levels-and-umg/485179>\
**Category:** UI\
**Tags:** level-load, unreal-engine, Widget, Blueprint, question\
**Created:** [June 21, 2021, 5:22pm UTC](https://forums.unrealengine.com/t/loading-levels-and-umg/485179 "2021-06-21T17:22:56Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![N0T\_A\_SWEAT](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/n0t_a_sweat/32/88714_2.png) [@N0T\_A\_SWEAT](https://forums.unrealengine.com/u/N0T_A_SWEAT)\
**Post date:** [June 21, 2021, 5:22pm UTC](https://forums.unrealengine.com/t/loading-levels-and-umg/485179/1 "2021-06-21T17:22:56Z")

</div>

so i have a basic save and load system up and running. i have to 2 levels one for the main menu with a ui/buttons. the second one is for the game. when i try to load the game from the ui it does not work. i assume it has something to do when switching to another level?

the first pic is from the game level (character bp). and the second pic is from the main menu widget aka the first level

 ![341982-efefefefe.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/0/d/e0da9c39e4bb0d2f197d411309c2812b4ca11335.jpeg)

 ![341983-fefefef.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/4/1d40209a854da547a8babca91839ba5c690cc911.jpeg)

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 21, 2021, 5:48pm UTC](https://forums.unrealengine.com/t/loading-levels-and-umg/485179/2 "2021-06-21T17:48:26Z")

</div>

Hi 🙂

Once you call ‘open level’, everything else gets thrown away, because ‘open level’ clears everything except the game instance. ( So it wont run the load player command ).

One way to get around the problem, is on every level - begin play, load the player data.

---

<div class="post-metadata">

**Author:** ![N0T\_A\_SWEAT](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/n0t_a_sweat/32/88714_2.png) [@N0T\_A\_SWEAT](https://forums.unrealengine.com/u/N0T_A_SWEAT)\
**Post date:** [June 21, 2021, 5:53pm UTC](https://forums.unrealengine.com/t/loading-levels-and-umg/485179/3 "2021-06-21T17:53:15Z")

</div>

hey, yeah alright gotcha. and one more thing i have the save and load function in the game instance? shouldnt it load bc i have it there or?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 21, 2021, 5:56pm UTC](https://forums.unrealengine.com/t/loading-levels-and-umg/485179/4 "2021-06-21T17:56:15Z")

</div>

The data’s safe because it’s in there, but that node ‘load player data’ you have in your picture won’t run, because the open level cuts everything off.

---

<div class="post-metadata">

**Author:** ![N0T\_A\_SWEAT](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/n0t_a_sweat/32/88714_2.png) [@N0T\_A\_SWEAT](https://forums.unrealengine.com/u/N0T_A_SWEAT)\
**Post date:** [June 21, 2021, 8:23pm UTC](https://forums.unrealengine.com/t/loading-levels-and-umg/485179/5 "2021-06-21T20:23:53Z")

</div>

ahh yeah bc it opens the level and cuts the rest of the code. but lets say i have a main menu with different saves. and if i press save 2 instead of the save 1 for example on the ui, it opens the level and loads save 2. how will i be able to do that?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 21, 2021, 8:31pm UTC](https://forums.unrealengine.com/t/loading-levels-and-umg/485179/6 "2021-06-21T20:31:53Z")

</div>

You know you have to open level 2, because they pressed the button.

---

<div class="post-metadata">

**Author:** ![N0T\_A\_SWEAT](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/n0t_a_sweat/32/88714_2.png) [@N0T\_A\_SWEAT](https://forums.unrealengine.com/u/N0T_A_SWEAT)\
**Post date:** [June 21, 2021, 9:31pm UTC](https://forums.unrealengine.com/t/loading-levels-and-umg/485179/7 "2021-06-21T21:31:37Z")

</div>

what, like i meant loading 2 saves on 1 level when like chose between saves

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [June 22, 2021, 7:03am UTC](https://forums.unrealengine.com/t/loading-levels-and-umg/485179/8 "2021-06-22T07:03:28Z")

</div>

You mean loading lvl2 save on lvl1? I don’t think it would make sense…

---

<div class="post-metadata">

**Author:** ![N0T\_A\_SWEAT](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/n0t_a_sweat/32/88714_2.png) [@N0T\_A\_SWEAT](https://forums.unrealengine.com/u/N0T_A_SWEAT)\
**Post date:** [June 25, 2021, 6:11pm UTC](https://forums.unrealengine.com/t/loading-levels-and-umg/485179/9 "2021-06-25T18:11:49Z")

</div>

yeah, but i fixed it by creating a custom event,the event gets called whenever i press the button
