summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Node.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml
index d38a724d39..553a852585 100644
--- a/doc/classes/Node.xml
+++ b/doc/classes/Node.xml
@@ -604,6 +604,15 @@
Removes a node from a 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" />