---
title: "init(allowsHitTesting:)"
framework: usdkit
role: symbol
role_heading: Initializer
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "usdkit/usdstagecomponent/init(allowshittesting:)"
---

# init(allowsHitTesting:)

Creates a USDStageComponent in manual mode.

## Declaration

```swift
@MainActor init(allowsHitTesting: Bool = true)
```

## Parameters

- `allowsHitTesting`: Whether to generate collision shapes for hit testing. Defaults to true.

## Discussion

Discussion In manual mode, you control when rendering occurs by calling render(_:to:at:).

## See Also

### Creating a stage component

- [init(_:timeCode:allowsHitTesting:)](usdkit/usdstagecomponent/init(_:timecode:allowshittesting:).md)
