Skip to content
API referenceDevelopmentEditor scriptingEngine ccf7d03f
Synced
  • Instantiates a prefab into a loaded scene and records the created subtree as one reversible edit.

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

public InnoEngine.Scene.GameObject InnoEditor.Scene.SceneEdits.InstantiatePrefab(InnoEngine.Scene.PrefabAsset prefab, InnoEngine.Scene.GameScene scene, InnoEngine.Scene.Transform? parent = null, string historyName = "Instantiate Prefab")

Parameter prefab: The imported prefab asset to instantiate.

Parameter scene: The loaded scene that will own the instance.

Parameter parent: The optional parent transform for the instantiated root.

Parameter historyName: The user-facing history entry name.

The instantiated prefab root.