SKNode

class SKNode : UIResponder, NSCopying, NSSecureCoding, UIFocusItem
  • SwifterSwift: Return an array of all SKNode descendants

        mySKNode.descendants() -> [childNodeOne, childNodeTwo]
    

    Declaration

    Swift

    func descendants() -> [SKNode]