startIndex
TypeScriptget startIndex(): numberSwift declarationvar startIndex: SkeletalPoseSet.Index { get }The index of the first pose in a nonempty set.
struct · iOS 18.0+ · SDK 27.1
struct SkeletalPoseSetA collection of named skeletal poses.
get startIndex(): numberSwift declarationvar startIndex: SkeletalPoseSet.Index { get }The index of the first pose in a nonempty set.
makeIterator(): SkeletalPoseSet_IteratorSwift declarationfunc makeIterator() -> SkeletalPoseSet.IteratorReturns an iterator over the elements of this sequence.
set(newValue: SkeletalPose): (SkeletalPose) | nullSwift declaration@discardableResult mutating func set(_ newValue: SkeletalPoseSet.Element) -> SkeletalPoseSet.Element?Updates a pose in the set based on its name. If pose with this ID does not exist, does nothing. - Parameter newValue: The pose to store. - Returns: The previous pose value, if named pose exists
get count(): numberSwift declarationvar count: Int { get }The number of elements in the collection.
indexOf(poseID: string): (number) | nullSwift declarationfunc index(of poseID: SkeletalPose.ID) -> SkeletalPoseSet.Index?Returns the index where the specified pose appears in the collection.
indexAfter(after: number): numberSwift declarationfunc index(after: SkeletalPoseSet.Index) -> SkeletalPoseSet.IndexReturns the index after the given index.
get default(): (SkeletalPose) | nullSwift declarationvar `default`: SkeletalPoseSet.Element? { get set }Accesses the first skeletal pose. Equivalent to accessing ``HasModel/jointNames`` and ``HasModel/jointTransforms`` if used from an entity with a skeletal model.
set default(value: (SkeletalPose) | null)Swift declarationvar `default`: SkeletalPoseSet.Element? { get set }Accesses the first skeletal pose. Equivalent to accessing ``HasModel/jointNames`` and ``HasModel/jointTransforms`` if used from an entity with a skeletal model.
get isEmpty(): booleanSwift declarationvar isEmpty: Bool { get }A Boolean value indicating whether the collection is empty.
contains(poseID: string): booleanSwift declarationfunc contains(_ poseID: SkeletalPose.ID) -> BoolChecks if the set contains a pose with the given name. - Parameter poseID: The name of the pose to look up - Returns: `true` a pose with matching name is contained in the set.
get endIndex(): numberSwift declarationvar endIndex: SkeletalPoseSet.Index { get }The index of the last pose in a nonempty set.
static init(): SkeletalPoseSetSwift declarationinit()Creates an empty collection.
subscript(poseID: string): (SkeletalPose) | nullSwift declarationsubscript(poseID: SkeletalPose.ID) -> SkeletalPoseSet.Element? { get set }Accesses the element with the specified identifier. If multiple poses share the same identifier, only the one with lowest index is accessed. The update only has an effect if all of the following conditions are true: * A pose with the provided identifier exists in the collection. * The new value isn't `nil`. * The pose with the provided identifier contains the same number of elements for its ``SkeletalPose/jointTransforms``. - Parameter poseID: The identifier of the requested pose.
subscript3367(index: number): SkeletalPoseSwift declarationsubscript(index: SkeletalPoseSet.Index) -> SkeletalPoseSet.Element { get set }Accesses the pose at the specified index.
No declarations were skipped in this snapshot.