---
title: "init(meshResource:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/blendshapeweightsmapping/init(meshresource:)"
---

# init(meshResource:)

Creates a mapping from the given MeshResource.

## Declaration

```swift
init(meshResource: MeshResource)
```

## Parameters

- `meshResource`: The definition of the mesh from which to build the mapping.
