# SaveGame vs GameInstance

**URL:** <https://forums.unrealengine.com/t/savegame-vs-gameinstance/58324>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [March 15, 2016, 2:28pm UTC](https://forums.unrealengine.com/t/savegame-vs-gameinstance/58324 "2016-03-15T14:28:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_437ed44a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_437ed44a](https://forums.unrealengine.com/u/anonymous_user_437ed44a)\
**Post date:** [March 15, 2016, 2:28pm UTC](https://forums.unrealengine.com/t/savegame-vs-gameinstance/58324/1 "2016-03-15T14:28:17Z")

</div>

Hello,

I do not understand the sense of GameInstance.

SaveGame save things between launches of the game.  
GameInstance between level switching.

So SaveGame can do everything, what GameInstance can do, right?. Because you can load the data every time. Is there a reason to use GameInstance?

Greetings

---

<div class="post-metadata">

**Author:** ![Urm92](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Urm92](https://forums.unrealengine.com/u/Urm92)\
**Post date:** [March 15, 2016, 2:54pm UTC](https://forums.unrealengine.com/t/savegame-vs-gameinstance/58324/2 "2016-03-15T14:54:59Z")

</div>

> [@;493570](#):
>
> Hello,
> 
> I do not understand the sense of GameInstance.
> 
> SaveGame save things between launches of the game.  
> GameInstance between level switching.
> 
> So SaveGame can do everything, what GameInstance can do, right?. Because you can load the data every time. Is there a reason to use GameInstance?
> 
> Greetings

You dont have to use GameInstance at all, if you want to you can save data between levels with SaveGames.  
But why would you do it if you dont need it? Its like wanting to open the door but instead you take a rock and throw it in your window to get in, you can do it but as long as you have the keys you dont need it.

Edit: [https://wiki.unrealengine.com/Game\_Instance,\_Custom\_Game\_Instance\_For\_Inter-Level\_Persistent\_Data\_Storage](https://wiki.unrealengine.com/Game_Instance,_Custom_Game_Instance_For_Inter-Level_Persistent_Data_Storage)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_60e3facf1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_60e3facf1](https://forums.unrealengine.com/u/anonymous_user_60e3facf1)\
**Post date:** [March 15, 2016, 3:22pm UTC](https://forums.unrealengine.com/t/savegame-vs-gameinstance/58324/3 "2016-03-15T15:22:47Z")

</div>

> [@;493570](#):
>
> Hello,
> 
> I do not understand the sense of GameInstance.
> 
> SaveGame save things between launches of the game.  
> GameInstance between level switching.
> 
> So SaveGame can do everything, what GameInstance can do, right?. Because you can load the data every time. Is there a reason to use GameInstance?
> 
> Greetings

i’m not an expert but as far as i know, save game will contain all the data of the game that have to be saved but moving from level to an other doesn’t require restoring all the data (you may want to transfer only player stats: health,ammo count, things like this)  
so as far as i can tell the difference is about the game resource optimisation3

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_437ed44a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_437ed44a](https://forums.unrealengine.com/u/anonymous_user_437ed44a)\
**Post date:** [March 15, 2016, 3:29pm UTC](https://forums.unrealengine.com/t/savegame-vs-gameinstance/58324/4 "2016-03-15T15:29:55Z")

</div>

Because I use both and I am considering using just one method. So if I would change things to save, I need only modify one thing.

Why your rock metaphore? Are SaveGames slower?

---

<div class="post-metadata">

**Author:** ![Urm92](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Urm92](https://forums.unrealengine.com/u/Urm92)\
**Post date:** [March 15, 2016, 3:49pm UTC](https://forums.unrealengine.com/t/savegame-vs-gameinstance/58324/5 "2016-03-15T15:49:16Z")

</div>

> [@;493602](#):
>
> Because I use both and I am considering using just one method. So if I would change things to save, I need only modify one thing.
> 
> Why your rock metaphore? Are SaveGames slower?

Like HAMZAest10 said.  
Its writing down informations and putting them in a locker, go back to the locker search for the informations and give it to someone, or you could just give them away.  
You can do it in case you need them to be saved.

---

<div class="post-metadata">

**Author:** ![OptimisticMonkey](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/optimisticmonkey/32/906571_2.png) [@OptimisticMonkey](https://forums.unrealengine.com/u/OptimisticMonkey)\
**Post date:** [March 15, 2016, 4:00pm UTC](https://forums.unrealengine.com/t/savegame-vs-gameinstance/58324/6 "2016-03-15T16:00:06Z")

</div>

The main difference concerns ownership and lifetime.

Game instance is automatically created and exists across levels for lifetime of game.

Save game must be explicitly created and is owned by something (e.g game instance)

Both are tools at your disposal, they are not redundant and serve different purposes…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8147ab75](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8147ab75](https://forums.unrealengine.com/u/anonymous_user_8147ab75)\
**Post date:** [March 15, 2016, 5:07pm UTC](https://forums.unrealengine.com/t/savegame-vs-gameinstance/58324/7 "2016-03-15T17:07:09Z")

</div>

I use game instance as a container for all my “global variables” and things that are otherwise difficult to share between BPs and simple data to retain between level loads. It just makes things easier.
