# Save/Load buttons in widgets

**URL:** <https://forums.unrealengine.com/t/save-load-buttons-in-widgets/475880>\
**Category:** UI\
**Tags:** load-game, save-game, unreal-engine, Widget, question\
**Created:** [December 14, 2020, 10:12am UTC](https://forums.unrealengine.com/t/save-load-buttons-in-widgets/475880 "2020-12-14T10:12:07Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![MiokylGehenna](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MiokylGehenna](https://forums.unrealengine.com/u/MiokylGehenna)\
**Post date:** [December 14, 2020, 10:12am UTC](https://forums.unrealengine.com/t/save-load-buttons-in-widgets/475880/1 "2020-12-14T10:12:07Z")

</div>

Hello! I am a begginer in UE4 and I want to make a game, the problem is that I want to make working buttons for Save/Load game in widgets. I found few tutorials but not exactly what I wanted. I have a “Load” button in main menu wich I want to use as a “Load” and the “Save” button from pause menu as save button, using BluePrints. Can someone give me a ss with bluprints, or a youtube tutorial?

---

<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:** [December 14, 2020, 10:47am UTC](https://forums.unrealengine.com/t/save-load-buttons-in-widgets/475880/2 "2020-12-14T10:47:00Z")

</div>

Not quite sure exactly which bit you’re missing. But, for instance, if you have a save game variable in the game instance, you could do this with a button:

 ![324723-screenshot-5.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/9/8/d9875e1a9c42323f92eb72c5a9b64acd590c23bd.jpeg)

And the save game button would be:

 ![324726-screenshot-6.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/a/d/cadd8d07a7ebf4f446e17ffa361be695b64a4f7c.jpeg)

RE: What you posted, then this should do it.

PS: The reason the save game variable is in the game instance, is because this is visible everywhere.

After you have made your own game instance, you need to enable it in the project settings:

 ![324706-screenshot-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/3/e/23e78eb35a523b9970d969f330243c4284f5dfe1.jpeg)

---

<div class="post-metadata">

**Author:** ![MiokylGehenna](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MiokylGehenna](https://forums.unrealengine.com/u/MiokylGehenna)\
**Post date:** [December 14, 2020, 10:49am UTC](https://forums.unrealengine.com/t/save-load-buttons-in-widgets/475880/3 "2020-12-14T10:49:52Z")

</div>

I want so save from here

![324724-save.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/0/4/a042b0accffa694aaa3523db7688e724dec00598.png)

And load from here

 ![324725-load.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/b/b/cbb26f31dba804967b8d2c157a06a95473eb0b6b.png)

I want to save from that button, not from one on the keyboard.  
I will try later these blueprints

---

<div class="post-metadata">

**Author:** ![MiokylGehenna](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MiokylGehenna](https://forums.unrealengine.com/u/MiokylGehenna)\
**Post date:** [December 14, 2020, 5:44pm UTC](https://forums.unrealengine.com/t/save-load-buttons-in-widgets/475880/4 "2020-12-14T17:44:34Z")

</div>

I don’t know if I did something wrong or not, but at save I can’t find that “Target”

---

<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:** [December 14, 2020, 5:46pm UTC](https://forums.unrealengine.com/t/save-load-buttons-in-widgets/475880/5 "2020-12-14T17:46:18Z")

</div>

You need to make a save game variable in the game instance. That’s the target 🙂

---

<div class="post-metadata">

**Author:** ![MiokylGehenna](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MiokylGehenna](https://forums.unrealengine.com/u/MiokylGehenna)\
**Post date:** [December 14, 2020, 6:02pm UTC](https://forums.unrealengine.com/t/save-load-buttons-in-widgets/475880/6 "2020-12-14T18:02:22Z")

</div>

That means more bluprints in that? Inside game instance, it’s empty.

---

<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:** [December 14, 2020, 6:10pm UTC](https://forums.unrealengine.com/t/save-load-buttons-in-widgets/475880/7 "2020-12-14T18:10:16Z")

</div>

Yes, you make a variable in the game instance. The type of the variable is your save game.

---

<div class="post-metadata">

**Author:** ![MiokylGehenna](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MiokylGehenna](https://forums.unrealengine.com/u/MiokylGehenna)\
**Post date:** [December 14, 2020, 6:26pm UTC](https://forums.unrealengine.com/t/save-load-buttons-in-widgets/475880/8 "2020-12-14T18:26:05Z")

</div>

Do you have a tutorial or a ss with blueprints from game instance? I think It’s the last step.

---

<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:** [December 14, 2020, 7:05pm UTC](https://forums.unrealengine.com/t/save-load-buttons-in-widgets/475880/9 "2020-12-14T19:05:04Z")

</div>

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/b/1/7b11150d2dfb9ab9d4e2f4dfb2cd7cedb4e480c9.jpeg "HTF do I? Use the GameInstance Object in Unreal Engine 4") ](https://www.youtube.com/watch?v=5w594D3qtLs)
