simple saving game editor

My game have editor i want to save GameObject positions and restore them when player back from Game mode to Editor mode(or game only Game mode and on click Restore it reset GameObjects) Can i do it without creating files or using playerPrefs? Can i make list of vector3 or something like that?

Just save the positions as a list or array of vector 3s then when you load the editor mode apply the vectors to the corresponding objects, you can use a generic dictionary to store the object reference and the position at start or exit whichever you choose