Closed willnode closed 6 years ago
As the documentation you quote states, the auto-property must be marked with [OdinSerialize] in order for the policy to serialize it.
Oops, you're right, I think I misunderstood the wording. Sorry!
Public fields and (fields or auto-properties marked with ..) <-- Wasn't aware to read this way.
That's perfectly understandable, really - we should probably add a comma in there to make the separation between the two cases clearer :)
I can add that I have now clarified the documentation for the Unity and Strict policies, so it should be better now.
I see, the doc is much better now. Thanks!
https://github.com/TeamSirenix/odin-serializer/blob/ecd5ee6cf3d71b654b62926f85e699a3db47d9f6/OdinSerializer/Core/Misc/SerializationPolicies.cs#L108-L112
However,
returns:
So then i'm not sure which one is correct.