Hello,
first thank you for your plugin that saved me lot of time!
I have an issue that bother me on multiple part of my project and I can't seem to find a solution that satisfy me, how would you save a list of object that may contains multiple subtypes?
Let's say I have a class Zoo, that contains a List<Animals>
and this list could contains
public class Bird : Animals
or
public class Eagle : Bird
How can I be sure to save and load specific members from class that inherit from animals?
Saving/loading inherited types
Re: Saving/loading inherited types
Hi there,
I'm afraid I'm not sure I understand the question. Are you saying that a List<Animals> isn't saving correctly? You should be able to save this like any other array, and the inheritance will be persisted.
All the best,
Joel
I'm afraid I'm not sure I understand the question. Are you saying that a List<Animals> isn't saving correctly? You should be able to save this like any other array, and the inheritance will be persisted.
All the best,
Joel
Re: Saving/loading inherited types
Thank you for your answer, it seems to work indeed sorry about this, my save management is a bit of a mess at the moment and the issues were not what I thought