Skip to content

Api > Animator > GetBoneTransform()


Animator.GetBoneTransform(HumanBodyBones humanBoneId)⚓︎

Returns Transform mapped to this human bone id. Returns null if the animator is disabled, if it does not have a human description, or if the bone id is invalid.

Parameters:⚓︎

Name Type Description
humanBoneId HumanBodyBones The human bone that is queried, see enum HumanBodyBones for a list of possible values.

Returns:⚓︎

type Description
Transform Transform mapped to this human bone id. Returns null if the animator is disabled, if it does not have a human description, or if the bone id is invalid.

Usage⚓︎

---@type Animator
local animator;

---@type HumanBodyBones
local humanBoneId;


local val0 = animator.GetBoneTransform(humanBoneId)