Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AnimationUtility

Editor utility functions for modifying animation clips.
Read time 2 minutesLast updated 2 days ago

Definition

  • Type: Class
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public class AnimationUtility

Static Fields

Value

Description

onCurveWasModifiedCalled when an animation curve, in an animation clip, is modified.

Static Methods

Method

Description

CalculateTransformPathRetrieves the path from the root Transform to the target Transform.
EditorCurveBindingsToGenericBindingsConverts EditorCurveBinding to GenericBinding.
GetAnimatableBindingsRetrieves the animatable bindings for a specific GameObject.
GetAnimatedObjectRetrieves the animated object that the binding points to.
GetAnimationClipsRetrieves an array of animation clips associated with a GameObject or component.
GetAnimationClips(Animation)
is obsolete and has been replaced with
GetAnimationClips(GameObject)
.
GetAnimationEventsRetrieves all animation events associated with an animation clip.
GetCurveBindingsRetrieves the float curve bindings in an animation clip.
GetDiscreteIntValueRetrieves the discrete integer value that the binding points to.
GetEditorCurveRetrieves the float curve that the binding points to.
GetFloatValueRetrieves the float value that the binding points to.
GetKeyBrokenRetrieves the broken tangent flag for a specfic keyframe.
GetKeyLeftTangentModeRetrieves the left tangent mode of the keyframe at a specific index.
GetKeyRightTangentModeRetrieves the right tangent mode of the keyframe at a specific index.
GetObjectReferenceCurveRetrieves the object reference curve that the binding points to.
GetObjectReferenceCurveBindingsRetrieves the object reference curve bindings stored in the animation clip.
GetObjectReferenceValueRetrieves the object value that the binding points to.
SetAdditiveReferencePoseSets the additive reference pose from referenceClip at time for animation clip clip.
SetAnimationClipsSets the array of animation clips to be referenced in the Animation component.
SetAnimationEventsReplaces all animation events in the animation clip.
SetEditorCurveAdds, modifies, or removes an editor float curve in an animation clip.
SetEditorCurvesAdds, modifies, or removes multiple editor float curves in an animation clip.
SetKeyBrokenChange the specified keyframe broken tangent flag.
SetKeyLeftTangentModeChange the specified keyframe tangent mode.
SetKeyRightTangentModeChange the specified keyframe tangent mode.
SetObjectReferenceCurveAdds, modifies, or removes an object reference curve in an animation clip.
SetObjectReferenceCurvesAdds, modifies, or removes object references curve in an animation clip.

Enums

Enum

Description

AnimationUtility.CurveModifiedTypeDescribes the type of modification that caused OnCurveWasModified to fire.
AnimationUtility.TangentModeThe TangentMode option for each Keyframe.

Delegates

Delegate

Description

AnimationUtility.OnCurveWasModifiedTriggered when an animation curve, in an animation clip, has been modified.