---
title: "init(assetPath:primPath:layerOffset:)"
framework: usdkit
role: symbol
role_heading: Initializer
path: "usdkit/usdprim/payload/init(assetpath:primpath:layeroffset:)"
---

# init(assetPath:primPath:layerOffset:)

Creates a payload.

## Declaration

```swift
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.
