startIndex
TypeScriptget startIndex(): numberSwift declarationvar startIndex: BlendShapeWeightsSet.Index { get }The index of the first entry in a non-empty set.
struct · iOS 18.0+ · SDK 27.1
struct BlendShapeWeightsSetA custom collection of named blend shape weights. Retrieve a `BlendShapeWeightsSet` from a ``BlendShapeWeightsComponent`` to access the current weights and weight names for each blend shape managed by the component. Set the current weights for a blend shape by assigning a `BlendShapeWeightsSet` to a ``BlendShapeWeightsComponent`` for a specific blend shape. The collection allows: * Access to elements by name. * Protection that prohibits updating an element, where such an update would try to rename the stored element. ``BlendShapeWeightsSet`` does not support addition/removal of elements, as the blend shape weights are defined in the asset and the number and names of the weights are immutable.
get startIndex(): numberSwift declarationvar startIndex: BlendShapeWeightsSet.Index { get }The index of the first entry in a non-empty set.
makeIterator(): BlendShapeWeightsSet_IteratorSwift declarationfunc makeIterator() -> BlendShapeWeightsSet.IteratorReturns an iterator over the elements of this sequence.
set(newValue: BlendShapeWeightsData): (BlendShapeWeightsData) | nullSwift declaration@discardableResult mutating func set(_ newValue: BlendShapeWeightsSet.Element) -> BlendShapeWeightsSet.Element?Updates a blend shape weights data instance in the set based on its name. If blend shape weights data with this ID does not exist, does nothing. - Parameter newValue: The blend shape weights data to store. - Returns: The previous pose value, if named pose exists. nil otherwise.
get count(): numberSwift declarationvar count: Int { get }Number of blend shape weight data in the set.
indexOf(blendShapeName: string): (number) | nullSwift declarationfunc index(of blendShapeName: String) -> BlendShapeWeightsSet.Index?Returns the index where the specified blend shape weights data appears in the collection.
indexAfter(i: number): numberSwift declarationfunc index(after i: BlendShapeWeightsSet.Index) -> BlendShapeWeightsSet.IndexReturns the index after the given index.
get default(): (BlendShapeWeightsData) | nullSwift declarationvar `default`: BlendShapeWeightsSet.Element? { get set }The blend shape weights data set that drives the model. This is equivalent to reading ``HasModel/blendWeights``.
set default(value: (BlendShapeWeightsData) | null)Swift declarationvar `default`: BlendShapeWeightsSet.Element? { get set }The blend shape weights data set that drives the model. This is equivalent to reading ``HasModel/blendWeights``.
get isEmpty(): booleanSwift declarationvar isEmpty: Bool { get }Checks if the set contains any blend shape weights data.
contains(blendShapeName: string): booleanSwift declarationfunc contains(_ blendShapeName: String) -> BoolChecks if the set contains a blend shape weights data instance with the given name. - Parameter blendShapeName: The name of the blend shape to look up. - Returns: `true` blend shape weights data associated with the matching name is contained in the set.
get endIndex(): numberSwift declarationvar endIndex: BlendShapeWeightsSet.Index { get }The index of the last entry in a non-empty set.
static init(): BlendShapeWeightsSetSwift declarationinit()Creates an empty set.
subscript(blendShapeName: string): (BlendShapeWeightsData) | nullSwift declarationsubscript(blendShapeName: String) -> BlendShapeWeightsSet.Element? { get }Accessor for reading a blend shape weights data in the set. - Parameter blendShapeName: The name of the blend shape to be returned. - Returns: Blend shape weights data associated with the given name owned by this set, or nil if not found.
subscript77229(index: number): BlendShapeWeightsDataSwift declarationsubscript(index: BlendShapeWeightsSet.Index) -> BlendShapeWeightsSet.Element { get set }Accesses the blend shape weights data at the specified index.
No declarations were skipped in this snapshot.