Hello guys
When I add a new property in my scriptable object class and save it all the precedent values are restored to original… It’s breaking all my inventory system evrytime I need to add/substract something in the class !
Any solution ?
Hello guys
When I add a new property in my scriptable object class and save it all the precedent values are restored to original… It’s breaking all my inventory system evrytime I need to add/substract something in the class !
Any solution ?
After digging I resolved it :
you need to make your scriptable object class Serializable.
To learn more : https://forum.unity.com/threads/serialization-best-practices-megapost.155352/?_ga=2.147647031.1444366519.1588258267-776494091.1587557806