---
title: "init(layer:relationshipPath:variability:isCustom:)"
framework: usdkit
role: symbol
role_heading: Initializer
path: "usdkit/usdprim/relationship/spec/init(layer:relationshippath:variability:iscustom:)"
---

# init(layer:relationshipPath:variability:isCustom:)

Creates a relationship spec at the given path in the layer, authoring intermediate ancestor prim specs as overs where needed.

## Declaration

```swift
init?(layer: USDLayer, relationshipPath: USDLayer.Path, variability: USDPrim.Property.Variability = .varying, isCustom: Bool = false)
```

## Parameters

- `layer`: The layer that owns the new relationship.
- `relationshipPath`: The full path of the relationship to author.
- `variability`: The relationship’s variability.
- `isCustom`: Whether the relationship is authored as custom.
