Synced
IEditorSceneWorkspace.SaveToDirectory
Section titled “IEditorSceneWorkspace.SaveToDirectory”
- Saves a scene into the requested asset directory.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Scene
Declaration
Section titled “Declaration”string Inno.Editor.Scene.IEditorSceneWorkspace.SaveToDirectory(Inno.Scene.GameScene scene, string currentDirectory)Parameters
Section titled “Parameters”Parameter scene: The scene to save.
Parameter currentDirectory: The target asset directory.
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.