“ diceNodes.append(diceScene.rootNode.childNode(
withName: “dice(count)”,
recursively: false)!)
}”
I have no ideas what this mean
“ diceNodes.append(diceScene.rootNode.childNode(
withName: “dice(count)”,
recursively: false)!)
}”
I have no ideas what this mean
Hi Maomao,
Recursion is a concept in Logic and Computer Science. To learn more about it, check out its Wikipedia article.
In this specific instance, you can learn more about what the recursively parameter means by looking at the Apple documentation. You can easily access it through Xcode, but here is a link: Apple Developer Documentation
In essence, it determines whether you’d like to search the entire child node subtree (true) or just the node’s immediate children (false).