# SaveOpenScenes()

> Save all open Scenes.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.SceneManagement](/engine/6000.7/script-reference/unityeditor/scenemanagement.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static bool SaveOpenScenes()
```

### Returns

| Type                                                          | Description                                             |
| ------------------------------------------------------------- | ------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if all open Scenes are successfully saved. |

### Remarks

**Note**: You must mark your Scenes as dirty to be able to save them. Use [EditorSceneManager.MarkAllScenesDirty](/engine/6000.7/script-reference/unityeditor/scenemanagement/editorscenemanager/markallscenesdirty.md) to do this.
