# SaveCurrentSceneIfUserWantsTo()

> Ask the user if they want to save the open Scene.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

> **Warning:**
>
> **Deprecated.** Use EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo

```csharp
public static bool SaveCurrentSceneIfUserWantsTo()
```

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

### Remarks

You might want to call this before opening another Scene or creating a new Scene. A return value of true indicates that you may continue. A return value of false indicates that the user cancelled the operation and you should not Open another Scene.
