<!--
{
  "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/BlendShapeWeightsMapping/init(blendShapeName:weightNames:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation24BlendShapeWeightsMappingC05blendD4Name11weightNamesACSS_SaySSGtcfc"
  },
  "title" : "init(blendShapeName:weightNames:)"
}
-->

# init(blendShapeName:weightNames:)

Creates a mapping that applies the weight names to mesh parts in a
model component.

```
init(blendShapeName: String, weightNames: [String])
```

## Parameters

`blendShapeName`

The user-defined name of the blend shape.

`weightNames`

The names of the weights that are managed by this mapping.

## Discussion

This creates a mapping that applies the weight names to every mesh part in the [`ModelComponent`](/documentation/RealityKit/ModelComponent) associated
with the [`BlendShapeWeightsComponent`](/documentation/RealityKit/BlendShapeWeightsComponent)’s entity.

Make sure the weight names match the weight names in the mesh resource data.  RealityKit will ignore weight names
that do not match.

---

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)