Synced
SceneEdits.InstantiatePrefab
Section titled “SceneEdits.InstantiatePrefab”
- Instantiates a prefab into a loaded scene and records the created subtree as one reversible edit.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Scene
Declaration
Section titled “Declaration”public Inno.Scene.GameObject Inno.Editor.Scene.SceneEdits.InstantiatePrefab(Inno.Scene.PrefabAsset prefab, Inno.Scene.GameScene scene, Inno.Scene.Components.Transform? parent = null, string historyName = "Instantiate Prefab")Parameters
Section titled “Parameters”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.
Returns
Section titled “Returns”The instantiated prefab root.