Synced
IEditorSceneWorkspace.Save
Section titled “IEditorSceneWorkspace.Save”
- Saves a scene to its existing path or into a fallback directory.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.Scene
Scope: Editor
Declaration
Section titled “Declaration”string InnoEditor.Scene.IEditorSceneWorkspace.Save(InnoEngine.Scene.GameScene scene, string currentDirectory)Parameters
Section titled “Parameters”Parameter scene: The scene to save.
Parameter currentDirectory: The fallback asset directory for an unsaved scene.
Returns
Section titled “Returns”The saved source-relative path.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: Thrown while Play Mode runtime copies are active, when the asset cannot be persisted, or when saving would overwrite its unavailable assigned source.