<!--
{
  "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/USDLayer/setField(at:name:value:)-83nwe",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "USDKit"
    ],
    "preciseIdentifier" : "s:6USDKit8USDLayerV8setField2at4name5valueyAC4PathV_AA8USDTokenVAA8USDValueVtF"
  },
  "title" : "setField(at:name:value:)"
}
-->

# setField(at:name:value:)

Sets the value of the named field at the given path.

```
func setField(at path: USDLayer.Path, name: USDToken, value: USDValue)
```

## Parameters

`path`

The path of the spec to update.

`name`

The field name.

`value`

The new field value.

---

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)