- Home /
Inherited class not saving to List in PlayMode
I have a list that contains a Base class. In my editor users can add scripts that inherit the base class to this list. Now when I use EditorUtility.SetDirty(target) it saves fine and looks to be working but when I press play button the class I added to the list reverts back to the base class. Why is this?
Answer by IgorAherne · Aug 14, 2013 at 06:46 PM
Welcome, newcomer, to the new and great world of serialization :)
:'(
http://blogs.unity3d.com/2012/10/25/unity-serialization/
Please check this as well :) http://forum.unity3d.com/threads/191923-Full-corse-how-to-make-a-horror-game-AVAILABLE
it's like having your eyebrows burned off by a torch you're holding because staring into the light is so beautiful
also your hair is on fire and it's spreading, hope you have good techniques for stopping and dropping and Rolling, and don't forget the capital R
The list does not reset back to zero. It keeps it's changes. Just the scripts I added to the list change to the base class. But I am reading that thing you posted
YOU ARE AWESO$$anonymous$$E!!!! Thank you very much. $$anonymous$$y issue is solved. I spent days on the scripts forum with little help but you solved my issue in $$anonymous$$utes. I was using scriptableobject all wrong. :D