Custom Dictionary Creation

Scriptable Dictionary

In the examples provided in Soap, you can find an example of a Scriptable Dictionary using custom types:

ScriptableDictionary<ScriptableEnumElement, int>.

When making your own game, you will want to create a custom scriptable dictionary. There are 2 ways to do it:

  • By code (Create a class inheriting from ScriptableDictionary<K , V> - where K and V are your custom types).

  • Using the Soap Type creator (Clicking on scriptable dictionary type will open a new pop up)

For more detailed explanation and examples of Scriptable Dictionary, please refer to the example scene '9_ScriptableDictionaries_Example_Scene' and its documentation and the Youtube tutorial.

Last updated