<!--
{
  "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/BlendShapeWeightsComponent",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation26BlendShapeWeightsComponentV"
  },
  "title" : "BlendShapeWeightsComponent"
}
-->

# BlendShapeWeightsComponent

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

```
struct BlendShapeWeightsComponent
```

## Overview

You can access the weights associated with an entity’s blend shapes by using the [`weightSet`](/documentation/RealityKit/BlendShapeWeightsComponent/weightSet) variable after an
initialized `BlendShapeWeightsComponent` is added to an entity.

```swift
let blendShapeWeightsComponent = BlendShapeWeightsComponent(
    weightsMapping: weightsMapping)
entity.components.set(blendShapeWeightsComponent)
let weightValues = BlendShapeWeights([0.3, 0.8])
entity.components[BlendShapeWeightsComponent.self]!.weightSets[0].weights =
    weightValues
```

## Relationships

### Conforms To

[`Component`](/documentation/RealityKit/Component)

---

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)