Executes the specified block for each of the node’s child and descendant nodes.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The block to apply to the node’s child and descendant nodes.
The block takes two parameters:
The child node currently being evaluated.
A reference to a Boolean value. Set
YESin the block to abort further processing of the child node subtree.
SceneKit uses a recursive preorder traversal to process the child node subtree—that is, the block runs for a node before it runs for each of the node’s children, and it processes all children of a node before processing any of that node’s sibling nodes.