Contents

inParentHierarchy(_:)

Returns a Boolean value that indicates whether the node is a descendant of the target node.

Declaration

func inParentHierarchy(_ parent: SKNode) -> Bool

Parameters

  • parent:

    An SKNode object to test against.

Return Value

true if the node is a descendant of the parent node; otherwise false.

See Also

Modifying the Node Tree