---
title: "nodes(at:)"
framework: spritekit
role: symbol
role_heading: Instance Method
path: "spritekit/sknode/nodes(at:)"
---

# nodes(at:)

Returns an array of all visible descendants that intersect a point.

## Declaration

```swift
func nodes(at p: CGPoint) -> [SKNode]
```

## Parameters

- `p`: A point in the node’s coordinate system.

## Mentioned in

Controlling User Interaction on Nodes Understanding Hit-Testing

## Return Value

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

Discussion A point is considered to be in a node if it lies inside the rectangle returned by the calculateAccumulatedFrame() method.

## See Also

### Hit Testing

- [Understanding Hit-Testing](spritekit/understanding-hit-testing.md)
- [contains(_:)](spritekit/sknode/contains(_:).md)
- [atPoint(_:)](spritekit/sknode/atpoint(_:).md)
