Dictionary not saved when marked as [SerializeField]
Posted: Thu May 25, 2023 8:26 pm
Hi,
when I mark a field Dictionary<Stat, float> as [SerializeField] (Stat is Enum), it is not saved when object with the field is saved. (I am not attaching screenshot of saved file as the field simply is not there)
But when I generate ES3TypeScript for the object, the field is saved correctly - see the screenshot and the saved file below.
Is this intended behavior or a bug? I can workaround it as I can generate script for every file, but it would be more handy to when it works without need to generate scripts (and to regenerate them with every change in the object).
Best regards, Jakub
when I mark a field Dictionary<Stat, float> as [SerializeField] (Stat is Enum), it is not saved when object with the field is saved. (I am not attaching screenshot of saved file as the field simply is not there)
But when I generate ES3TypeScript for the object, the field is saved correctly - see the screenshot and the saved file below.
Is this intended behavior or a bug? I can workaround it as I can generate script for every file, but it would be more handy to when it works without need to generate scripts (and to regenerate them with every change in the object).
Best regards, Jakub