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

# init(assetPath:primPath:layerOffset:customData:)

Creates a reference.

## Declaration

```swift
init(assetPath: String? = nil, primPath: USDLayer.Path? = nil, layerOffset: USDLayer.TimeOffset = USDLayer.TimeOffset(), customData: Dictionary<String, USDValue> = [:])
```

## Parameters

- `assetPath`: The asset path to target. Pass nil for an internal reference (pointing within the same layer stack).
- `primPath`: The prim path within the referenced asset. Pass nil to use the asset’s default prim.
- `layerOffset`: The time transformation applied during composition.
- `customData`: Custom data dictionary attached to the reference.
