SKNode

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

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

    Declaration

    Swift

    public func descendants() -> [SKNode]