<!--
{
  "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/setTimeSample(at:time:value:)-3ot1j",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "USDKit"
    ],
    "preciseIdentifier" : "s:6USDKit8USDLayerV13setTimeSample2at4time5valueyAC4PathV_AC0D4CodeVxtAA16USDValueProtocolRzlF"
  },
  "title" : "setTimeSample(at:time:value:)"
}
-->

# setTimeSample(at:time:value:)

Sets the time-sampled value for the attribute at the given path
at the specified time, wrapping the typed value in a `USDValue`.

```
func setTimeSample<T>(at path: USDLayer.Path, time: USDLayer.TimeCode, value: T) where T : USDValueProtocol
```

## Parameters

`path`

The attribute path.

`time`

The time at which to author.

`value`

The typed sample 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)