---
title: "attribute(at:)"
framework: usdkit
role: symbol
role_heading: Instance Method
path: "usdkit/usdprim/spec/attribute(at:)"
---

# attribute(at:)

Returns the attribute spec at the given path within this prim.

## Declaration

```swift
func attribute(at path: USDLayer.Path) -> USDPrim.Attribute.Spec?
```

## Parameters

- `path`: The path to look up.

## Return Value

Return Value The attribute spec, or nil if none exists at path.
