<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "USDKit",
  "identifier" : "/documentation/USDKit/USDStageComponent/init(allowsHitTesting:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "USDKit",
      "RealityKit"
    ],
    "preciseIdentifier" : "s:18_USDKit_RealityKit17USDStageComponentV16allowsHitTestingACSb_tcfc"
  },
  "title" : "init(allowsHitTesting:)"
}
-->

# init(allowsHitTesting:)

Creates a USDStageComponent in manual mode.

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

## Parameters

`allowsHitTesting`

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

## Discussion

In manual mode, you control when rendering occurs by calling
[`render(_:to:at:)`](/documentation/USDKit/USDStageComponent/render(_:to:at:)).

---

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)