Synced
IEditorSceneWorkspace.SavePrefab
Section titled “IEditorSceneWorkspace.SavePrefab”
- Captures a game object subtree as a prefab in the requested directory.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.Scene
Scope: Editor
Declaration
Section titled “Declaration”string InnoEditor.Scene.IEditorSceneWorkspace.SavePrefab(InnoEngine.Scene.GameObject gameObject, string currentDirectory)Parameters
Section titled “Parameters”Parameter gameObject: The prefab root.
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 or when the asset cannot be persisted.