Array of custom classes not saving to Playmode
So I created this editor tool that is just a visual way of editing an array of SavedItem. SavedItem is a main class but I have for example SavedEquipable : SavedItem. When I add a SavedEquipable to the array of SavedItem its all good. But after I enter playmode all of them turn into SavedItems loosing the data of SavedEquipable. What I believe is happening cause of when unity serializes and deserializes my object it only does it for the parent class. Is there a way to get around all this?
Your answer
Follow this Question
Related Questions
How Can I Stop my Array Being Cleared on Runtime via Serialisation? 0 Answers
How to save a two-dimensional array, as part of the variable inspector? 0 Answers
Unity custom class array serialization issue. 0 Answers
Code only runs when object is selected in the editor 0 Answers
only keep every 10th entry in an array? 2 Answers