---
title: firstFoundOnly
framework: scenekit
role: symbol
role_heading: Type Property
path: scenekit/scnhittestoption/firstfoundonly
---

# firstFoundOnly

An option to return only the first object found.

## Declaration

```swift
static let firstFoundOnly: SCNHitTestOption
```

## Discussion

Discussion The value for this key is a NSNumber object containing a Boolean value. The default value is false, specifying that hit-testing should return all objects found. If you specify true, the array of hit-test results contains only the first object found (which is not necessarily the nearest).

## See Also

### Deprecated

- [sortResults](scenekit/scnhittestoption/sortresults.md)
