USaveGame

This class acts as a base class for a save game object that can be used to save state about the game.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/GameFramework/SaveGame.h

Include

#include "GameFramework/SaveGame.h"

Syntax

class USaveGame : public UObject

Remarks

This class acts as a base class for a save game object that can be used to save state about the game. When you create your own save game subclass, you would add member variables for the information that you want to save. Then when you want to save a game, create an instance of this object using CreateSaveGameObject, fill in the data, and use SaveGameToSlot, providing a slot name. To load the game you then just use LoadGameFromSlot, and read the data from the resulting object.

Constructors

Name Description

Public function

USaveGame

(
    const FObjectInitializer & ObjectIn...
)

See Also

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback