1. Home
  2. Docs
  3. Save Game Free
  4. Scripting API
  5. SaveGame.Load

SaveGame.Load

Description

Load the data from the specified identifier.

Parameters

NameTypeDescriptionRequired
identifierstringThe identifier to load the data from.required
defaultValueTThe default value to return if the value does not existsoptional
encodeboolUse Encryption?optional
passwordstringThe encryption passwordoptional
serializerISaveGameSerializerThe serializeroptional
encoderISaveGameEncoderThe encoderoptional
encodingEncodingThe Unicode encodingoptional
pathSaveGamePathThe path to load data fromoptional

Returns

The loaded data if exists, otherwise returns the default value specified, else returns null.

Examples

Loading Simple Data

Loading Array

 

Was this article helpful to you? Yes No

How can we help?