Help with saving and load a map

im working on a level editor and i want to add an option to save and load it
do you guys have any idea how can i do it?
in the level editor im using the “spawn actor” function
so how can i save that

Your going to want to create a SaveGame slot, then put a save function on your actors. Now you just need to call that function on all actors and let each one save itself. You just need to save things like the type of actor class, location, rotation, etc… then when you load a game just iterate over the saved actors in the SaveGame slot and call spawn actor again for each one with the saved data.