In class constructor I set value 5. In editor In property I set value 0. If in game i set value 5 and save game. After loading from file value Par is 0 (How value in property), but must be five.
If I set Par value 3,4,6,7, everything works correctly, but if set value equal constructor value it take incorrect value. Data from file I load with help serialization class.
How are you setting up your save/load feature? If you’re able to reproduce this issue, can you provide the setup steps to help me investigate the issue locally?
Hey there, someone else had the same issues (which I also run into) and this fixed it for me
Epic - there are a few threads like this (eg Unexpected behavior with SaveGame - Editor Scripting - Unreal Engine Forums), it seems like the SaveGameToSlot and related functions in UGameplayStatics maybe should be ignoring default deltas by default or at least give us a bool flag to make it do that, instead of having to rewrite those functions again? Its a very subtle error that could easily be missed and its not something most would expect would be an issue.