---
title: ignoreChildNodes
framework: scenekit
role: symbol
role_heading: Type Property
path: scenekit/scnhittestoption/ignorechildnodes
---

# ignoreChildNodes

An option to ignore child nodes when searching.

## Declaration

```swift
static let ignoreChildNodes: SCNHitTestOption
```

## Discussion

Discussion The value for this key is an NSNumber object containing a Boolean value. The default value is false, specifying that hit-testing may return objects from any portion of the node hierarchy. Specify true to search only the node specified by the rootNode key.

## See Also

### Options

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