---
title: "metadata(_:keyPath:)"
framework: usdkit
role: symbol
role_heading: Instance Method
path: "usdkit/usdstage-4sfi1/object/metadatacollection/metadata(_:keypath:)"
---

# metadata(_:keyPath:)

## Declaration

```swift
func metadata<T>(_ key: USDToken, keyPath: USDToken) -> T? where T : USDPrim.Attribute.MetadataValue
```
