SaveOpenScenes()
Save all open Scenes.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor.SceneManagement
- Assembly: UnityEditor
public static bool SaveOpenScenes()
Returns
Type | Description |
|---|---|
| bool | 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 to do this.