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

API: engine
Project: Inno.Editor.Scene

string Inno.Editor.Scene.IEditorSceneWorkspace.SavePrefab(Inno.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.