UGameplayStatics::LoadGameFromMemory

Tries to load a SaveGame object from a given array of bytes.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h

Include

#include "Kismet/GameplayStatics.h"

Source

/Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp

Syntax

static USaveGame * LoadGameFromMemory
(
    const TArray< uint8 > & InSaveData
)

Remarks

Tries to load a SaveGame object from a given array of bytes.

Returns

Object containing loaded game state (nullptr if load fails)

Parameters

Parameter

Description

InSaveData

The array containing the serialized USaveGame data to load

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss