<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNHitTestOption/firstFoundOnly",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:@SCNHitTestFirstFoundOnlyKey"
  },
  "title" : "firstFoundOnly"
}
-->

# firstFoundOnly

An option to return only the first object found.

```
static let firstFoundOnly: SCNHitTestOption
```

## Discussion

The value for this key is a <doc://com.apple.documentation/documentation/Foundation/NSNumber> object containing a Boolean value. The default value is <doc://com.apple.documentation/documentation/Swift/false>, specifying that hit-testing should return all objects found. If you specify <doc://com.apple.documentation/documentation/Swift/true>, the array of hit-test results contains only the first object found (which is not necessarily the nearest).

---

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)