-
Notifications
You must be signed in to change notification settings - Fork 0
PackedSceneExtensions
Alexis Brooks edited this page Mar 12, 2026
·
3 revisions
T PackedScene.InstantiateAsChild<T>(Node parent, PackedScene.GenEditState editState = PackedScene.GenEditState.Disabled, bool forceReadableName = false, Node.InternalMode @internal = Node.InternalMode.Disabled) where T : Node
Instantiates the scene as a child of the given parent.
T? PackedScene.TryInstantiateAsChild<T>(Node parent, PackedScene.GenEditState editState = PackedScene.GenEditState.Disabled, bool forceReadableName = false, Node.InternalMode @internal = Node.InternalMode.Disabled) where T : Node
Attempts to instantiate the scene as a child of the given parent.