Closed nicolas-goyon closed 3 months ago
@nicolas-goyon yeah the error reason is that class not serialized
[Serializable]
public class NestedDictionnaryEntry<K> where K : System.Enum
{
/// <summary>
/// Names of leaderboards for each difficulty for that game mode
/// </summary>
public SerializableDictionary<K, string> entry;
}
But it not going to work because nested dict will not be duplicated on creation of new instance so its plugin problem the only think i can provide is use manually nested dict
public SerializableDictionary<string, SerializableDictionary<string, int>> nestedDict;
This will work
Okay thanks
Oh well, setting all 3 classes to serializable seems to work
Not the prettiest but its working
Oh, when using the nested class/struct (instead of public SerializableDictionary<string, SerializableDictionary<string, int>> nestedDict;
)
if i add a key for the holder, it dupplicate the data and will cause issue with the nested dictionnary that will be the same object and when one is changed the other will be too...
But when using your method i have this display and no errors when dupplicate values :
Yeah if its work for you that's good news!
[EDITED]
Here is the nested dictionnary :
I have the following implement :
but now i have the following error when adding a new element to the
holder
: