You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a child node. Nodes can have any number of children, but every child must have a unique name. Child nodes are automatically deleted when the parent node is deleted, so an entire scene can be removed by deleting its topmost node.
Setting legible_unique_name to true creates child nodes with human-readable names, based on the name of the node being instanced instead of its type.
Adds a child node. The child is placed below the given node in the list of children.
Setting legible_unique_name to true creates child nodes with human-readable names, based on the name of the node being instanced instead of its type.
Here: "add_child ( Node node," <- the node that gets added is the first argument and called "node",
here: "add_child_below_node ( Node node, Node child_node, <- the first argument is also called "node" like above, but the node that gets added is not this one but the second argument called "child_node"
Both descriptions in the first line say "Adds a child node."
If only one of those method descriptions would exist, they would be clear, but together they are confusing because of the changing syntax. It's not clear what argument is for the node I want to add, which one is for the node that gets something appended to.
Adds a child node below the appending node.
Setting legible_unique_name to true creates child nodes with human-readable names, based on the name of the node being instanced instead of its type.
The text was updated successfully, but these errors were encountered:
https://docs.godotengine.org/en/3.1/classes/class_node.html#class-node-method-add-child
Here: "add_child ( Node node," <- the node that gets added is the first argument and called "node",
here: "add_child_below_node ( Node node, Node child_node, <- the first argument is also called "node" like above, but the node that gets added is not this one but the second argument called "child_node"
Both descriptions in the first line say "Adds a child node."
If only one of those method descriptions would exist, they would be clear, but together they are confusing because of the changing syntax. It's not clear what argument is for the node I want to add, which one is for the node that gets something appended to.
Proposal:
void add_child_below_node ( Node appending node, Node node, bool legible_unique_name=false )
Adds a child node below the appending node.
Setting legible_unique_name to true creates child nodes with human-readable names, based on the name of the node being instanced instead of its type.
The text was updated successfully, but these errors were encountered: