Get all node/child node list in godot
Function :
func getNode(node = get_tree().root, dash = ""):
#listOfAllNodesInTree.append(node)
dash = dash+"- "
for childNode in node.get_children():
print(str(dash+childNode.name))
getNode(childNode,dash)
Use :
getNode($node)
| App | : Godot engine |
| App version | : 4.2 |
| Your free, open‑source game engine. | |
| Download | Download Godot for Windows |

Post a Comment