Skip to main content

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:

NameTypeDescription
humanBoneIdHumanBodyBonesThe human bone that is queried, see enum HumanBodyBones for a list of possible values.

Returns:

typeDescription
TransformTransform 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)