<!--
{
  "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/USDPrim/Payload/init(assetPath:primPath:layerOffset:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "USDKit"
    ],
    "preciseIdentifier" : "s:6USDKit7USDPrimV7PayloadV9assetPath04primE011layerOffsetAESSSg_AA8USDLayerV0E0VSgAK04TimeH0Vtcfc"
  },
  "title" : "init(assetPath:primPath:layerOffset:)"
}
-->

# init(assetPath:primPath:layerOffset:)

Creates a payload.

```
init(assetPath: String? = nil, primPath: USDLayer.Path? = nil, layerOffset: USDLayer.TimeOffset = USDLayer.TimeOffset())
```

## Parameters

`assetPath`

The asset path to target. Pass `nil` if not yet set.

`primPath`

The prim path within the referenced asset.
Pass `nil` to use the asset’s default prim.

`layerOffset`

The time transformation applied during composition.

---

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)