diff options
author | Tomasz Chabora <kobewi4e@gmail.com> | 2020-02-17 18:29:14 +0100 |
---|---|---|
committer | kobewi <kobewi4e@gmail.com> | 2022-08-16 19:44:41 +0200 |
commit | 2bdd7e9ea0383c06fe6a83445469e41222477abc (patch) | |
tree | 70c22e25063e0b608344ca5d02debc252c589a28 /doc/classes | |
parent | d5d22ab035a611a567f73a2ee2d61a81c99c61b5 (diff) |
Add methods for node reparenting
Diffstat (limited to 'doc/classes')
-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 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" /> |