<!--
{
  "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/Attribute/Spec/init(owner:name:typeName:variability:isCustom:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "USDKit"
    ],
    "preciseIdentifier" : "s:6USDKit7USDPrimV9AttributeV4SpecV5owner4name8typeName11variability8isCustomAGSgAcFV_AA8USDTokenVAE9ValueTypeVAC8PropertyV11VariabilityOSbtcfc"
  },
  "title" : "init(owner:name:typeName:variability:isCustom:)"
}
-->

# init(owner:name:typeName:variability:isCustom:)

Creates a new attribute spec under the given prim spec.

```
init?(owner: USDPrim.Spec, name: USDToken, typeName: USDPrim.Attribute.ValueType, variability: USDPrim.Property.Variability = .varying, isCustom: Bool = false)
```

## Parameters

`owner`

The prim spec that owns the new attribute.

`name`

The attribute’s name.

`typeName`

The attribute’s value type.

`variability`

The attribute’s variability.

`isCustom`

Whether the attribute is authored as `custom`.

---

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)