poses
TypeScriptget poses(): SkeletalPoseSetSwift declarationvar poses: SkeletalPoseSetThe collection of the skeletal poses for a single entity.
struct · iOS 18.0+ · SDK 27.1
struct SkeletalPosesComponentA component that exposes the collection of named animation skeletal poses. Use the entity's skeletal poses to either read the pose evaluated from animations bound to ``BindTarget/jointTransforms`` and ``BindTarget/skeletalPose(_:)``, or write your own pose to animate the skeletal model. ### Setting updated value on an entity When an updated ``SkeletalPose`` is set on an entity as part of this component, these rules are followed: * If ``SkeletalPose/jointNames`` is reordered, following animation updated will match the new order. * If ``SkeletalPose/jointTransforms`` contains more elements than ``SkeletalPose/jointNames``, the extra transformations are ignored. * If ``SkeletalPose/jointTransforms`` contains less elements than ``SkeletalPose/jointNames``, the extra joint transformations are not updated. You can use ``poses``'s ``SkeletalPoseSet/default`` accessor for the same skeletal pose as exposed by ``HasModel/jointNames`` and ``HasModel/jointTransforms``. The access trough the component allows the reordering, addition and removal of joints from the default pose.
get poses(): SkeletalPoseSetSwift declarationvar poses: SkeletalPoseSetThe collection of the skeletal poses for a single entity.
set poses(value: SkeletalPoseSet)Swift declarationvar poses: SkeletalPoseSetThe collection of the skeletal poses for a single entity.
static init(poses: Array<SkeletalPose>): SkeletalPosesComponentSwift declarationinit(poses: [SkeletalPose])Creates a component value with the provided poses. - Warning: When multiple poses share the same identifier, only the first one is accessible using its identifier. - Parameter poses: The pose values, arranged in any order of your choosing.
No declarations were skipped in this snapshot.