---
title: BlendShapeWeightsSet
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/blendshapeweightsset
---

# BlendShapeWeightsSet

A custom collection of named blend shape weights.

## Declaration

```swift
struct BlendShapeWeightsSet
```

## Overview

Overview Retrieve a BlendShapeWeightsSet from a BlendShapeWeightsComponent to access the current weights and weight names for each blend shape managed by the component. Set the current weights for a blend shape by assigning a BlendShapeWeightsSet to a BlendShapeWeightsComponent for a specific blend shape. The collection allows: Access to elements by name. Protection that prohibits updating an element, where such an update would try to rename the stored element. BlendShapeWeightsSet does not support addition/removal of elements, as the blend shape weights are defined in the asset and the number and names of the weights are immutable.

## Topics

### Initializers

- [init()](realitykit/blendshapeweightsset/init().md)

### Instance Properties

- [count](realitykit/blendshapeweightsset/count.md)
- [default](realitykit/blendshapeweightsset/default.md)
- [isEmpty](realitykit/blendshapeweightsset/isempty.md)

### Instance Methods

- [contains(_:)](realitykit/blendshapeweightsset/contains(_:).md)
- [index(of:)](realitykit/blendshapeweightsset/index(of:).md)
- [set(_:)](realitykit/blendshapeweightsset/set(_:).md)

### Subscripts

- [subscript(_:)](realitykit/blendshapeweightsset/subscript(_:).md)

### Default Implementations

- [Collection Implementations](realitykit/blendshapeweightsset/collection-implementations.md)

## Relationships

### Conforms To

- [Collection](swift/collection.md)
- [Copyable](swift/copyable.md)
- [Escapable](swift/escapable.md)
- [Sequence](swift/sequence.md)

## See Also

### Blend shape management

- [BlendShapeWeightsComponent](realitykit/blendshapeweightscomponent.md)
- [BlendShapeWeightsMapping](realitykit/blendshapeweightsmapping.md)
- [BlendShapeWeights](realitykit/blendshapeweights.md)
- [BlendShapeWeightsData](realitykit/blendshapeweightsdata.md)
