<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/SkeletalPoseSet/set(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation15SkeletalPoseSetV3setyAA0cD0VSgAFF"
  },
  "title" : "set(_:)"
}
-->

# set(_:)

Updates a pose in the set based on its name. If pose with this ID does not exist, does nothing.

```
@discardableResult mutating func set(_ newValue: SkeletalPoseSet.Element) -> SkeletalPoseSet.Element?
```

## Parameters

`newValue`

The pose to store.

## Return Value

The previous pose value, if named pose exists

---

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)