<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKNode/nodes(at:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKNode(im)nodesAtPoint:"
  },
  "title" : "nodes(at:)"
}
-->

# nodes(at:)

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

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

## Parameters

`p`

A point in the node’s coordinate system.

## Return Value

An array of all `SKNode` objects in the subtree that intersect the point. Only nodes that have an [`isHidden`](/documentation/SpriteKit/SKNode/isHidden) of `false` and an [`alpha`](/documentation/SpriteKit/SKNode/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()`](/documentation/SpriteKit/SKNode/calculateAccumulatedFrame()) method.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)