Cross Platform Easy Save
  • Introduction
  • What is Serialization & De-Serialization
  • Plugin Setup and Usage
  • Supported Data Types
  • Save Data (Serialize)
  • Load Data (Deserialize)
  • Extending Support for any data type
  • Release Notes
  • FAQ
  • Advanced
    • Get as Byte Stream
  • Video Tutorials
    • Plugin Setup
    • Package Contents
    • Basic Save
    • Save Scene Objects
    • Save Custom Objects
    • Batch Save Calls
Powered by GitBook
On this page
  • Examples
  • Video Tutorials

Load Data (Deserialize)

Learn how to load data

For using this plugin methods you need to import the required namespace. Please include the below statement at namespace include list.

using VoxelBusters.Serialization;

We provide a generic method to load(De-Serialize) any kind of data. For deserializing data you need to specify a key with which data was serialized earlier.

Examples

Load Int

int myIntValue = SerializationManager.Deserialize<int>("myInt");
int myIntValue = SerializationManager.DeserializeInt32("myInt");

Load Float

float myFloatValue = SerializationManager.Deserialize<float>("myFloat");
float myFloatValue = SerializationManager.DeserializeSingle("myFloat");

Load String

string myStringValue = SerializationManager.Deserialize<string>("myString");
string myStringValue = SerializationManager.DeserializeString("myString");

Load GameObject

GameObject gameobject = SerializationManager.Deserialize<GameObject>("gameObject");

Load List

List<GameObject> gameobjects = SerializationManager.Deserialize<List<GameObject>>("gameObjects");

Video Tutorials

PreviousSave Data (Serialize)NextExtending Support for any data type

Last updated 6 years ago

Basic Save
Save Scene Objects
Save Custom Objects
Batch Save Calls