BlendShapeWeightsComponent
A component that provides access to the current weights associated with all blend shape meshes on an entity.
Declaration
struct BlendShapeWeightsComponentOverview
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