Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Captures a game object subtree as a prefab in the requested directory.

API: scripting
Project: Inno.Editor.Scene
Scope: Editor

string InnoEditor.Scene.IEditorSceneWorkspace.SavePrefab(InnoEngine.Scene.GameObject gameObject, string currentDirectory)

Parameter gameObject: The prefab root.

Parameter currentDirectory: The target asset directory.

The saved source-relative path.

Exception T:System.InvalidOperationException: Thrown while Play Mode runtime copies are active or when the asset cannot be persisted.