# Loading

{% hint style="warning" %}
This only edits the save data in memory. See [Writing Changes](/esave/scripting/saving-and-loading/data-management/writing-changes.md).
{% endhint %}

Each ESave method that loads data only accepts one parameter, which is the ID of the data.&#x20;

## GetData

The main method to load data is `SaveFile.GetData`. This method accepts any type parameter.

```csharp
// Where T is the data type
T data = saveFile.GetData<T>("DataID");
```

You can also retrieve a list of data of the same type:

```csharp
// Where T is the data type
List<T> dataList = saveFile.GetData<T>("DataID", "DataID2", "DataID3");
```

{% hint style="success" %}
Retrieving multiple data entries in a single call is more efficient in the [Pro version](https://u3d.as/3vCT).
{% endhint %}

## Special Methods

ESave features special methods to retrieve data for some Unity types.

#### Vector2

```csharp
Vector2 v2 = saveFile.GetVector2("DataID");
```

#### Vector3

```csharp
Vector3 v3 = saveFile.GetVector3("DataID");
```

#### Quaternion

```csharp
Quaternion q = saveFile.GetQuaternion("DataID");
```

#### Color

```csharp
Color c = saveFile.GetColor("DataID");
```

#### Transform

```csharp
// Returns a SavableTransform
SavableTransform st = saveFile.GetTransform("DataID");

// Use Transform.CopyTransformValues to set values from a 
// SavableTransform to a Transform
transform.CopyTransformValues(st);
```


---

# 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://espergames.gitbook.io/esave/scripting/saving-and-loading/data-management/loading.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.
