(SOLVED)[Saving & Loading] What variables to store to store object position?

I’m working on loading and saving my objects in my game and have got everything working except positions. I have tried to save position, localPosition and anchoredposition (1 at a time) and none of them have given the object the same position when loaded. Which of all these should I save or should I save them all? I offcource don’t want my save file to be longer than neccecary. Thanks.

EDIT: I am using XMLSerilization and I’m saving RectTransforms
EDIT 2: I must have done something wrong somewhere, anchoredposition was the right one to save and it now works as espected :smile:

Is the difference just small or very large?
I didn’t do anything like that so this is just a guess.
If you have a large level you might need to use doubles instead of floats to get enougth precision.