childNode(withName:recursively:)
Returns the first node in the node’s child node subtree with the specified name.
Declaration
func childNode(withName name: String, recursively: Bool) -> SCNNode?Parameters
Discussion
If the recursive parameter is true, SceneKit uses a preorder traversal to search the child node subtree—that is, the block searches a node before it searches each of the node’s children, and it searches all children of a node before searching any of that node’s sibling nodes. Otherwise, SceneKit searches only those nodes in the node’s childNodes array.