I have some issues with my saving system after introducing the lazyValue setup.
It errors with SerializationException saying the the LazyValue type is not marked as serializable. Is this a general thing?
I have some issues with my saving system after introducing the lazyValue setup.
It errors with SerializationException saying the the LazyValue type is not marked as serializable. Is this a general thing?
I think i solved it.
My weapon class have an audiofile, I use for hit sound fx, but i guess the save state and restore state can’t serialize that file…Well atleast I hope that is the problem otherwise i am drawing a blank 
The error was not the audio.
It was the CaptureState() in health where i didn’t change to healthPoints.value and only had healthpoints. so it was trying to save the object healthPoints of type LazyValue instead of saving the float value…
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.