---
title: categoryBitMask
framework: scenekit
role: symbol
role_heading: Type Property
path: scenekit/scnhittestoption/categorybitmask
---

# categoryBitMask

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

## Declaration

```swift
static let categoryBitMask: SCNHitTestOption
```

## Discussion

Discussion The value for this key is an NSNumber object containing an integer value. If present, the search will return only nodes that both satisfy the hit test and have a categoryBitMask value overlapping this bitmask.

## See Also

### Options

- [backFaceCulling](scenekit/scnhittestoption/backfaceculling.md)
- [boundingBoxOnly](scenekit/scnhittestoption/boundingboxonly.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)
