Skip to content

Instantly share code, notes, and snippets.

@Romaleks360
Romaleks360 / SerializedDictionary.cs
Last active April 26, 2023 19:38
Serialized Dictionary for Unity
using System.Collections.Generic;
using UnityEngine;
namespace Utils
{
[System.Serializable]
public class SerializedDictionary<TKey, TValue> : Dictionary<TKey, TValue>, ISerializationCallbackReceiver
{
[SerializeField] List<Pair> _pairs;