# Variable's Transient vs SaveGame property

**URL:** <https://forums.unrealengine.com/t/variables-transient-vs-savegame-property/588441>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE5-0, Blueprint, question\
**Created:** [June 23, 2022, 8:46am UTC](https://forums.unrealengine.com/t/variables-transient-vs-savegame-property/588441 "2022-06-23T08:46:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilozen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ilozen](https://forums.unrealengine.com/u/ilozen)\
**Post date:** [June 23, 2022, 8:46am UTC](https://forums.unrealengine.com/t/variables-transient-vs-savegame-property/588441/1 "2022-06-23T08:46:57Z")

</div>

I’m having a hard time understanding what the Transient and SaveGame properties of variables actually do. [Documentation](https://docs.unrealengine.com/5.0/en-US/unreal-engine-uproperty-specifiers/) says:

> SaveGame  
> This Specifier is a simple way to include fields explicitly for a checkpoint/save system at the property level. The flag should be set on all fields that are intended to be part of a saved game, and then a proxy archiver can be used to read/write it.
> 
> Transient  
> Property is transient, meaning it will not be saved or loaded. Properties tagged this way will be zero-filled at load time.

So based on that it seems to me that Transient is the opposite of SaveGame but since those are two different properties it cannot be that. So what’s the difference?

Also what would happen if a variable would be marked as both Transient and SaveGame at the same time? Based on the above description it would mean it would save and not save at the same time 🤔

---

<div class="post-metadata">

**Author:** ![Est\_engine](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/est_engine/32/1008648_2.png) [@Est\_engine](https://forums.unrealengine.com/u/Est_engine)\
**Post date:** [June 23, 2022, 12:19pm UTC](https://forums.unrealengine.com/t/variables-transient-vs-savegame-property/588441/2 "2022-06-23T12:19:17Z")

</div>

Here some example !

[Where to use a Transient variable. - Programming & Scripting / C++ - Unreal Engine Forums](https://forums.unrealengine.com/t/where-to-use-a-transient-variable/17494)

[Transient variable - Epic Games Forums](https://forums.epicgames.com/udk/udk-development/udk-programming-and-unrealscript/212255-transient-variable)

---

<div class="post-metadata">

**Author:** ![ilozen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ilozen](https://forums.unrealengine.com/u/ilozen)\
**Post date:** [June 23, 2022, 12:48pm UTC](https://forums.unrealengine.com/t/variables-transient-vs-savegame-property/588441/3 "2022-06-23T12:48:32Z")

</div>

I read those but they don’t answer my question. Especially that most answers are like “I’m not sure but I think…”.

---

<div class="post-metadata">

**Author:** ![spacebares](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spacebares](https://forums.unrealengine.com/u/spacebares)\
**Post date:** [April 29, 2024, 10:50pm UTC](https://forums.unrealengine.com/t/variables-transient-vs-savegame-property/588441/4 "2024-04-29T22:50:07Z")

</div>

There is serialization support for properties that don’t have saveGame on them. You just tell the FArchive to do so, and **all** properties are serialized.  
Transient properties make sure properties can never be saved.

And obviously FArchives with SaveGame flag will only go for SaveGame properties.

SaveGame and Transient on the same property is interesting, im not sure what happens if you do that.

So if your building savegame code for your game is safe to not have to tag sensitive stuff transient, because a savegame FArchive just looks for SaveGame property.

And if using a non savegame FArchive that saves everything, you tag stuff Transient you don’t want saved.
