---
title: "set(_:)"
framework: realitykit
role: symbol
role_heading: Instance Method
path: "realitykit/blendshapeweightsset/set(_:)"
---

# set(_:)

Updates a blend shape weights data instance in the set based on its name. If blend shape weights data with this ID does not exist, does nothing.

## Declaration

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

## Parameters

- `newValue`: The blend shape weights data to store.

## Return Value

Return Value The previous pose value, if named pose exists. nil otherwise.
