---
title: "setCustomDataByKey(_:value:)"
framework: USDKit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "usdkit/usdstage/object/metadatacollection/setcustomdatabykey(_:value:)"
---

# setCustomDataByKey(_:value:)

Modifies the custom data value at the given key path.

## Declaration

```swift
func setCustomDataByKey(_ keyPath: USDToken, value: USDValue)
```
