EduardMalkhasyan / Serializable-Dictionary-Unity

Create a serializable dictionary in Unity with all necessary error detections
MIT License
38 stars 3 forks source link

SerializableDictionary<string, object> unable to parse objects #6

Closed OdincoGaming closed 3 months ago

OdincoGaming commented 3 months ago

ive tried everything, explicitly casting, making a generically typed GetValue method, basically anything the top 100 searches on bing and google suggested and without fail every single time I just get null when using object as the value.

am I maybe doing something wrong? or is actually a limitation of this plugin?

EduardMalkhasyan commented 3 months ago

Hello @OdincoGaming as I know generally you cant serialize [SerializeField] private object data; object by it self in Unity you need to specify what type it is exactly, so yes its also limitation of this plugin

EduardMalkhasyan commented 3 months ago

I don't know if you need this but look at this class it can be serialized image