> For the complete documentation index, see [llms.txt](https://infinitypbr.gitbook.io/magic-pig-games/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infinitypbr.gitbook.io/magic-pig-games/game-modules-4/module-documentation/dictionaries.md).

# Dictionaries

## Overview

The [**Dictionaries**](https://assetstore.unity.com/packages/tools/game-toolkits/modules-dictionaries-192899?aid=1100lxWw\&pubref=p80-19) module adds serializable dictionary-like functionality to your project. Essentially a class that acts a bit like a dictionary, but is not, including key/value pairs and helper methods.

The scripts are fairly simple and straightforward and while it can be used with our other modules, this is a great addition to any project which needs serializable key/value pair functionality.

{% hint style="warning" %}
If you are migrating from an earlier Game Modules version to Game Modules 4, check the  page on [**Dictionaries migration tips**](/magic-pig-games/game-modules-4/v4-migration-tips/dictionaries.md)!
{% endhint %}

{% hint style="success" %}
The `Dictionaries` class currently supports the following types:

* int
* float
* bool
* Texture2D
* Sprite
* AnimationClip
* AudioClip
* Vector2
* Vector3
* Vector4
* Color
* Prefab *(Can hold game objects other than prefabs as well)*

It also supports these Game Modules types:

* Stat
* ItemObject
* ItemAttribute
* Quest
* QuestCondition
* QuestReward
* Condition
* LootBox
* LootItems
  {% endhint %}

{% content-ref url="/pages/KvTyfFogRZ6uHpKT12c7" %}
[Dictionaries Setup](/magic-pig-games/game-modules-4/module-documentation/dictionaries/dictionaries-setup.md)
{% endcontent-ref %}

{% embed url="<https://www.youtube.com/watch?v=j6Ac8kLsRhU>" %}
