<!--
{
  "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/USDStage/init(string:loadingPayloads:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "USDKit"
    ],
    "preciseIdentifier" : "s:6USDKit8USDStageV6string15loadingPayloadsACSS_AC15InitialLoadRuleOtKcfc"
  },
  "title" : "init(string:loadingPayloads:)"
}
-->

# init(string:loadingPayloads:)

Creates a stage from a string containing a `.usda` document.

```
init(string: String, loadingPayloads: USDStage.InitialLoadRule = .all) throws
```

## Parameters

`string`

The text of a `.usda` document to open as the root layer.

`loadingPayloads`

The rule that determines which payloads are loaded when opening the stage.

## Discussion> Throws: An error if the string cannot be read as a `.usda` layer.

---

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)