nodes(at:)
Returns an array of all visible descendants that intersect a point.
Declaration
func nodes(at p: CGPoint) -> [SKNode]Parameters
- p:
A point in the node’s coordinate system.
Mentioned in
Return Value
An array of all SKNode objects in the subtree that intersect the point. Only nodes that have an isHidden of false and an alpha greater that zero are included in the returned array. If no nodes intersect the point, an empty array is returned.
Discussion
A point is considered to be in a node if it lies inside the rectangle returned by the calculateAccumulatedFrame() method.