One Logo Pool Ball
RealityFoundation · IOS API REFERENCE

BlendShapeWeightsData

struct · iOS 18.0+ · SDK 27.1

struct BlendShapeWeightsData

A structure that encapsulates the blend shape name, blend shape weights and the names of those weights to be stored by the blend shape weights set.

Members (5)

get · iOS 18.0+

weightNames

TypeScript
get weightNames(): Array<string>
Swift declaration
var weightNames: [String] { get }

The name of each weight value defined in the ``weights`` variable.

init · iOS 18.0+

init

TypeScript
static init(id: string, weights: Array<[string, number]>): BlendShapeWeightsData
Swift declaration
init(id: BlendShapeWeightsData.ID, weights: [(String, BlendShapeWeights.Element)])

Creates an instance of the named weights for a single blend shape. - Parameters: - id: The unique name of the blend shape. - weights: An array of name value pairs for the weights in predefined order.

get · iOS 18.0+

id

TypeScript
get id(): string
Swift declaration
var id: BlendShapeWeightsData.ID { get }

The unique id of the blend shape. This value is used when binding to the structure using an animation bind target.

get · iOS 18.0+

weights

TypeScript
get weights(): BlendShapeWeights
Swift declaration
var weights: BlendShapeWeights { get set }

The blend shape's weight values.

set · iOS 18.0+

weights

TypeScript
set weights(value: BlendShapeWeights)
Swift declaration
var weights: BlendShapeWeights { get set }

The blend shape's weight values.

Skipped declarations

No declarations were skipped in this snapshot.

All RealityFoundation types →