Version: 1.7
LanguageEnglish
  • C#

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

Parameters

boneName The name of a bone.
rotation The rotation to set.

Description

Sets the local rotation of the bone whose name is provided, if it is animated by a curve.

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