---
title: "setAssetInfo(_:to:)"
framework: usdkit
role: symbol
role_heading: Instance Method
path: "usdkit/usdprim/relationship/spec/setassetinfo(_:to:)"
---

# setAssetInfo(_:to:)

Sets key in the asset info dictionary to value. Read the full dictionary via field("assetInfo") from FieldCollection.

## Declaration

```swift
func setAssetInfo(_ key: String, to value: USDValue)
```

## Parameters

- `key`: The dictionary key.
- `value`: The new value.
