diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-07 13:20:56 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-01-07 13:20:56 +0100 |
commit | 3579d7a9f74e3f1eda88826897feb4b866d75ec9 (patch) | |
tree | 40afa501f94493b7df9dc41c6d7b3ed738f0b15d /doc | |
parent | 447aa5b0259ab18139d86297dfccb8dd68ef2e30 (diff) | |
parent | 2bdd7e9ea0383c06fe6a83445469e41222477abc (diff) |
Merge pull request #36301 from KoBeWi/daddy_node
Add reparent methods to Node
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/Node.xml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml index 24df5977f9..0ccc4155b4 100644 --- a/doc/classes/Node.xml +++ b/doc/classes/Node.xml @@ -612,6 +612,15 @@ Removes a node from the [param group]. Does nothing if the node is not in the [param group]. See notes in the description, and the group methods in [SceneTree]. </description> </method> + <method name="reparent"> + <return type="void" /> + <param index="0" name="new_parent" type="Node" /> + <param index="1" name="keep_global_transform" type="bool" default="true" /> + <description> + Changes the parent of this [Node] to the [param new_parent]. The node needs to already have a parent. + If [param keep_global_transform] is [code]true[/code], the node's global transform will be preserved if supported. [Node2D], [Node3D] and [Control] support this argument (but [Control] keeps only position). + </description> + </method> <method name="replace_by"> <return type="void" /> <param index="0" name="node" type="Node" /> |