Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AnimationUtility

Namespace: UnityEditor

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

Sumbission failed

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

Close

Cancel

Description

Editor utility functions for modifying animation clips.

Static Functions

CalculateTransformPath Calculates path from root transform to target transform.
GetAllCurves Retrieves all curves from a specific animation clip.
GetAnimationClips Returns the array of AnimationClips that are referenced in the Animation component.
GetAnimationEvents Retrieves all animation events associated with the animation clip.
GetEditorCurve Unity automatic combines position curves, scale curves, rotation curves internally.
GetFloatValue Retrieves the current float value by sampling a curve value on a specific game object.
SetAnimationClips Sets the array of AnimationClips to be referenced in the Animation component.
SetAnimationEvents Replaces all animation events in the animation clip.
SetEditorCurve Adds an editor curve to the given clip.