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

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

Creates a reference.

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

---

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)