---
title: SCNHitTestOption
framework: scenekit
role: symbol
role_heading: Structure
path: scenekit/scnhittestoption
---

# SCNHitTestOption

Options affecting the behavior of SceneKit hit-testing methods.

## Declaration

```swift
struct SCNHitTestOption
```

## Topics

### Options

- [backFaceCulling](scenekit/scnhittestoption/backfaceculling.md)
- [boundingBoxOnly](scenekit/scnhittestoption/boundingboxonly.md)
- [categoryBitMask](scenekit/scnhittestoption/categorybitmask.md)
- [clipToZRange](scenekit/scnhittestoption/cliptozrange.md)
- [ignoreChildNodes](scenekit/scnhittestoption/ignorechildnodes.md)
- [ignoreHiddenNodes](scenekit/scnhittestoption/ignorehiddennodes.md)
- [rootNode](scenekit/scnhittestoption/rootnode.md)
- [searchMode](scenekit/scnhittestoption/searchmode.md)
- [SCNHitTestSearchMode](scenekit/scnhittestsearchmode.md)

### Deprecated

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

### Initializers

- [init(rawValue:)](scenekit/scnhittestoption/init(rawvalue:).md)

### Type Properties

- [ignoreLightArea](scenekit/scnhittestoption/ignorelightarea.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Related Documentation

- [hitTestWithSegment(from:to:options:)](scenekit/scnnode/hittestwithsegment(from:to:options:).md)

### Hit-Testing

- [hitTestWithSegment(from:to:options:)](scenekit/scnnode/hittestwithsegment(from:to:options:).md)
