Hello guys. I’ve tried using serializer but I can’t seem to make it save the changes I make to the variables.
I declared some simple variables… This is the code:
When I click play it prints the default values. Then I press the L key and the values change accordingly. I save and then load… But upon loading the values are reverted back to default… What am I missing? Anyone know please?
EDIT: Ok… found out that private variables don’t get saved unless specified… but I tried a public Vector2 attached to the camera and that doesn’t seem to work…
yes a vector2 field change made in playmode will not serialize.
Somebody has made an editor extension on the asset store that facilitates serializing data while in playmode. I dont know to what extent it works or not…