<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:@T@SCNHitTestOption"
  },
  "title" : "SCNHitTestOption"
}
-->

# SCNHitTestOption

Options affecting the behavior of SceneKit hit-testing methods.

```
struct SCNHitTestOption
```

## Topics

### Options

[`backFaceCulling`](/documentation/SceneKit/SCNHitTestOption/backFaceCulling)

An option to ignore faces not oriented toward the camera.

[`boundingBoxOnly`](/documentation/SceneKit/SCNHitTestOption/boundingBoxOnly)

An option to search for objects by bounding box only.

[`categoryBitMask`](/documentation/SceneKit/SCNHitTestOption/categoryBitMask)

An option to search only for objects matching a specified bitmask.

[`clipToZRange`](/documentation/SceneKit/SCNHitTestOption/clipToZRange)

An option to search for objects only within the depth range of the current point of view.

[`ignoreChildNodes`](/documentation/SceneKit/SCNHitTestOption/ignoreChildNodes)

An option to ignore child nodes when searching.

[`ignoreHiddenNodes`](/documentation/SceneKit/SCNHitTestOption/ignoreHiddenNodes)

An option to ignore hidden nodes when searching.

[`rootNode`](/documentation/SceneKit/SCNHitTestOption/rootNode)

The root of the node hierarchy to be searched.

[`searchMode`](/documentation/SceneKit/SCNHitTestOption/searchMode)

An option for the number and order of hit test results to provide.

[`SCNHitTestSearchMode`](/documentation/SceneKit/SCNHitTestSearchMode)

Possible values for the [`searchMode`](/documentation/SceneKit/SCNHitTestOption/searchMode) option used with hit-testing methods.

### Deprecated

[`firstFoundOnly`](/documentation/SceneKit/SCNHitTestOption/firstFoundOnly)

An option to return only the first object found.

[`sortResults`](/documentation/SceneKit/SCNHitTestOption/sortResults)

An option to sort the results of a hit-test.

## See Also

[`hitTestWithSegment(from:to:options:)`](/documentation/SceneKit/SCNNode/hitTestWithSegment(from:to:options:))

Searches the node’s child node subtree for objects intersecting a line segment between two specified points.



---

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)