Skip to content
This repository was archived by the owner on Jan 13, 2026. It is now read-only.

abrusle/unity-scriptable-dictionary

Repository files navigation

Scriptable Dictionary

Provides a base ScriptableObject class ScriptableDictionary<TKey, TValue> that implements IDictionary<TKey, TValue>. You can derive from that class to create custom dictionary asset.

Examples

  1. Simple types
[CreateAssetMenu(fileName = "new Simple Dictionary"] public class MySimpleDictionary : ScriptableDictionary<string, float> { // }
  1. Custom Types
public enum SpellType { Air, Water, Fire, Earth } [System.Serializable] public struct DamageInfo { public float value; public string name; public float knockback; } [CreateAssetMenu(fileName = "new Spell Damage Map"] public class SpellDamageMap : ScriptableDictionary<SpellType, DamageInfo> { // }

About

Dictionaries as ScriptableObjects in Unity.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages