EditorSceneManager.Save Scene This cannot be used during play mode

my Code

[MenuItem(“Scenes/Save Scene”)]

static void SaveScene()
{
string path = EditorUtility.SaveFilePanel(“Save Scene”, “”, “”, “unity”);

if (path.Length != 0)
{ EditorSceneManager.SaveScene(SceneManager.GetActiveScene(), path, saveAsCopy: true) ;
}

}

error message : EditorSceneManager.Save Scene This cannot be used during play mode

Pretty straight forward. You can’t save a scene while you’re playing. I don’t think this is possible even if you tried File > Save or pressed Ctrl + S while playing.

same thing with File> Save or File > Save as or Ctrl +s , i use Unity 5.5.op 1(last) , i remember in unity 5.1 i can do this

I’d be very surprised if that were the case.

1 Like