inParentHierarchy(_:)
Returns a Boolean value that indicates whether the node is a descendant of the target node.
Declaration
func inParentHierarchy(_ parent: SKNode) -> BoolParameters
- parent:
An
SKNodeobject to test against.
Return Value
true if the node is a descendant of the parent node; otherwise false.