# Load Data (Deserialize)

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

{% tabs %}
{% tab title="Generic Usage" %}

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

{% endtab %}

{% tab title="Direct Usage" %}

```csharp
int myIntValue = SerializationManager.DeserializeInt32("myInt");
```

{% endtab %}
{% endtabs %}

#### Load Float

{% tabs %}
{% tab title="Generic Usage" %}

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

{% endtab %}

{% tab title="Direct Usage" %}

```csharp
float myFloatValue = SerializationManager.DeserializeSingle("myFloat");
```

{% endtab %}
{% endtabs %}

#### Load String

{% tabs %}
{% tab title="Generic Usage" %}

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

{% endtab %}

{% tab title="Direct Usage" %}

```csharp
string myStringValue = SerializationManager.DeserializeString("myString");
```

{% endtab %}
{% endtabs %}

#### Load GameObject

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

#### Load List

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

## Video Tutorials

{% content-ref url="/pages/-LNzVxmTkn46VuKUgpZi" %}
[Basic Save](/tutorials/video-tutorials/basic-save.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LNzWAcWTuR\_CEev9\_yj" %}
[Save Scene Objects](/tutorials/video-tutorials/save-scene-objects.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LNzWRi-AA89Cb4bcrTC" %}
[Save Custom Objects](/tutorials/video-tutorials/save-custom-objects.md)
{% endcontent-ref %}

{% content-ref url="/pages/-LNzWYJRUvPJtX33CIMy" %}
[Batch Save Calls](/tutorials/video-tutorials/batch-save-calls.md)
{% endcontent-ref %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://assetstore.easysave.voxelbusters.com/tutorials/load-data-deserialize.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
