Search found 7 matches

by Simplemole
Thu Jun 01, 2023 2:59 pm
Forum: General Discussion
Topic: Dictionary not saved when marked as [SerializeField]
Replies: 6
Views: 1117

Re: Dictionary not saved when marked as [SerializeField]

Hi Joel, great, thanks for help. I missed this in documentation: Components are only saved on GameObjects if they have an ES3Type I thought that they are saved if the class have [ES3Serializable] attribute and that only applicable fields (that are checked by default in UI) are saved - now it is clea...
by Simplemole
Thu Jun 01, 2023 11:47 am
Forum: General Discussion
Topic: Dictionary not saved when marked as [SerializeField]
Replies: 6
Views: 1117

Re: Dictionary not saved when marked as [SerializeField]

Hi Joel, you can find a simple scene with a few scripts here (made in plain 2D project in unity 2021.3.26, latest ES3): It seems to me that serialization that is made "on the fly" (on the fields with [ES3Serializable] attributes) sometimes works for Dictionary, but not always. Once I gener...
by Simplemole
Fri May 26, 2023 11:46 am
Forum: General Discussion
Topic: Dictionary not saved when marked as [SerializeField]
Replies: 6
Views: 1117

Re: Dictionary not saved when marked as [SerializeField]

Hi Joel, thanks for fast reply.
The Stat class is enum - so it should be serialized by default?
by Simplemole
Thu May 25, 2023 8:26 pm
Forum: General Discussion
Topic: Dictionary not saved when marked as [SerializeField]
Replies: 6
Views: 1117

Dictionary not saved when marked as [SerializeField]

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. 2023-05-25_21h47_38.png (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 ...
by Simplemole
Thu Aug 25, 2022 3:52 pm
Forum: General Discussion
Topic: Reference could not be found in reference manager
Replies: 6
Views: 1106

Re: Reference could not be found in reference manager

Hi Joel, thank you for clarifying, loading twice seems like an elegant way how to solve cyclic references. The original problem was solved by adding all sprites I have to Add References to Manager.
Great support, thank you!
by Simplemole
Thu Aug 25, 2022 1:36 pm
Forum: General Discussion
Topic: Reference could not be found in reference manager
Replies: 6
Views: 1106

Re: Reference could not be found in reference manager

Hi Joel, thank you very much for the response, I am instantiating all GameObjects on runtime, so it is #2. I was digging a bit into how exactly ReferenceManager works when you work with GameObjects in runtime, can you please confirm (or correct me or send me the link where it is discussed/described)...
by Simplemole
Wed Aug 24, 2022 6:12 pm
Forum: General Discussion
Topic: Reference could not be found in reference manager
Replies: 6
Views: 1106

Reference could not be found in reference manager

Hi, when I save GameObject and load it again, it is loaded but Sprite in Sprite renderer is missing (other variables and also my scripts looks to be loaded correctly). I am getting warning "Reference for UnityEngine.Sprite with ID 6429260329939571930 could not be found in Easy Save's reference ...