# ItemRegistry

*The Item Registry is a collection of all Item\_SOs in your Project. Save & Load requires to access the stored references. When a file in your project is imported, deleted or moved, we need to check if it was an Item\_SO, and properly reflect the changes into the ItemRegistry.*

*To retrieve an Item\_SO by its name, refer to the following guide:*

### Get Item\_SO from Item Registry By Name

{% hint style="warning" %}
In order to access ItemRegistry, ensure to add the following library on top of your Script:
{% endhint %}

```csharp
using cowsins.SaveLoad; // Required to access ItemRegistry
```

#### Gather Item\_SOs Programmatically based on the name.

```csharp
ItemRegistry.GetItemByName(yourNameString);
```

***

### Functions | DataPersistenceManager.cs&#x20;

> <mark style="color:green;">GetItemByName(string itemName)</mark>
>
> Runtime access to get an item by its name
>
> * <mark style="color:purple;">itemName</mark>: Name (string) of the Item to gather from the ItemRegistry.
