Synced
PrefabAsset.Instantiate
Section titled “PrefabAsset.Instantiate”
- Instantiates this prefab into a scene using newly generated object identities.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Scene
Declaration
Section titled “Declaration”public Inno.Scene.GameObject Inno.Scene.PrefabAsset.Instantiate(Inno.Scene.GameScene scene, Inno.Core.Serialization.SerializationRegistry serialization, Inno.Assets.IAssetReferenceResolver assets, Inno.Scene.Components.Transform? parent = null)Parameters
Section titled “Parameters”Parameter scene: Target scene.
Parameter serialization: The serialization registry that owns the active prefab converter generation.
Parameter assets: The runtime asset generation used to resolve persistent references in the prefab graph.
Parameter parent: Optional target parent.
Returns
Section titled “Returns”The instantiated root game object.