Save Edit ((new)) - Unity

// Save the updated data file = File.Create(Application.persistentDataPath + "/playerdata.dat"); formatter.Serialize(file, loadedData); file.Close();

Unity famously discards most changes made to the Hierarchy while in Play Mode. Here is how to keep them: unity save edit