diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-10-17 21:06:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-17 21:06:18 +0200 |
commit | 6a8dfdb60e6ab47ee023c62a31cdd754e16d1ca5 (patch) | |
tree | dc0cbf5ab6f88188bb8c8c315b26df69c9428309 | |
parent | 5b6a22e275ef8d8e2ad3b1e8074af4b30c076c27 (diff) | |
parent | 02ce2f4bb95bb41b3ec164d0a7bf9ea48d6a9501 (diff) |
Merge pull request #42865 from KoBeWi/disappearing_@s
Document that setting node name will remove @s
-rw-r--r-- | doc/classes/Node.xml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml index 623e4b099b..2e8b76865d 100644 --- a/doc/classes/Node.xml +++ b/doc/classes/Node.xml @@ -834,6 +834,7 @@ </member> <member name="name" type="StringName" setter="set_name" getter="get_name"> The name of the node. This name is unique among the siblings (other child nodes from the same parent). When set to an existing name, the node will be automatically renamed. + [b]Note:[/b] Auto-generated names might include the [code]@[/code] character, which is reserved for unique names when using [method add_child]. When setting the name manually, any [code]@[/code] will be removed. </member> <member name="owner" type="Node" setter="set_owner" getter="get_owner"> The node owner. A node can have any other node as owner (as long as it is a valid parent, grandparent, etc. ascending in the tree). When saving a node (using [PackedScene]), all the nodes it owns will be saved with it. This allows for the creation of complex [SceneTree]s, with instancing and subinstancing. |