Version: 1.7
LanguageEnglish
  • C#

AnimationStream.GetBonePosition

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public Vector3 GetBonePosition(string boneName);

Parameters

boneName The name of a bone.

Returns

Vector3 Returns the curve-evluated position value of the bone.

Description

Gets the curve-evaluated position value for the bone whose name is provided.

The passed bone should be one of the Avatar skeleton bones, and the AnimationClip used should contain the animation curve of the bone.