노출
[Unity] Serializable Dictionary - 인스펙터에 노출시킬 수 있는 딕셔너리
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace AT.SerializableDictionary { [System.Serializable] public class SerializableDictionary : Dictionary, ISerializationCallbackReceiver { [SerializeField] private List keys = new List(); [SerializeField] private List values = new List(); // save the dictionary to lists public void OnBeforeSerialize() { keys.Clear..