---
title: BlendShapeWeightsComponent
framework: realitykit
role: symbol
role_heading: Structure
path: realitykit/blendshapeweightscomponent
---

# BlendShapeWeightsComponent

A component that provides access to the current weights associated with all blend shape meshes on an entity.

## Declaration

```swift
struct BlendShapeWeightsComponent
```

## Overview

Overview You can access the weights associated with an entity’s blend shapes by using the weightSet variable after an initialized BlendShapeWeightsComponent is added to an entity. let blendShapeWeightsComponent = BlendShapeWeightsComponent(     weightsMapping: weightsMapping) entity.components.set(blendShapeWeightsComponent) let weightValues = BlendShapeWeights([0.3, 0.8]) entity.components[BlendShapeWeightsComponent.self]!.weightSets[0].weights =     weightValues

## Topics

### Initializers

- [init(weightsMapping:)](realitykit/blendshapeweightscomponent/init(weightsmapping:).md)

### Instance Properties

- [weightSet](realitykit/blendshapeweightscomponent/weightset.md)

## Relationships

### Conforms To

- [Component](realitykit/component.md)

## See Also

### Blend shape management

- [BlendShapeWeightsMapping](realitykit/blendshapeweightsmapping.md)
- [BlendShapeWeights](realitykit/blendshapeweights.md)
- [BlendShapeWeightsData](realitykit/blendshapeweightsdata.md)
- [BlendShapeWeightsSet](realitykit/blendshapeweightsset.md)
