summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-09-10 09:59:15 +0200
committerGitHub <noreply@github.com>2022-09-10 09:59:15 +0200
commit8899f1eec213620c421ba16c07cf1b3681c5a25d (patch)
tree8accccd8fb7571f51f6a011e2594aeadfa94589c /doc
parent27e132347324318567419ac5039d51338d7d4f0e (diff)
parent31e62ca827e179e3803772afb279ed995ab3019e (diff)
downloadredot-engine-8899f1eec213620c421ba16c07cf1b3681c5a25d.tar.gz
Merge pull request #65595 from KoBeWi/minus_children
Allow negative indices in `move_child()`
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/Node.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml
index 24faf3c167..d8ad65082f 100644
--- a/doc/classes/Node.xml
+++ b/doc/classes/Node.xml
@@ -514,7 +514,7 @@
<param index="0" name="child_node" type="Node" />
<param index="1" name="to_position" type="int" />
<description>
- Moves a child node to a different position (order) among the other children. Since calls, signals, etc are performed by tree order, changing the order of children nodes may be useful.
+ Moves a child node to a different position (order) among the other children. Since calls, signals, etc are performed by tree order, changing the order of children nodes may be useful. If [param to_position] is negative, the index will be counted from the end.
[b]Note:[/b] Internal children can only be moved within their expected "internal range" (see [code]internal[/code] parameter in [method add_child]).
</description>
</method>