Version: 2017.3

AnimationUtility

class in UnityEditor

Switch to Manual

Description

Полезные функции редактора для изменения анимационных клипов.

Static Variables

onCurveWasModifiedTriggered when an animation curve inside an animation clip has been modified.

Static Functions

CalculateTransformPathCalculates path from root transform to target transform.
GetAnimatableBindingsВозвращает список анимирующихся свойств для определенного анимированного объекта, который привязан к gameObject.
GetAnimatedObjectReturns the animated object that the binding is pointing to.
GetAnimationClipsВозвращает массив AnimationClips, на который ссылается компонент Animation.
GetAnimationEventsВосстанавливает все события анимации, связанные с анимационным клипом.
GetCurveBindingsReturns all the float curve bindings currently stored in the clip.
GetEditorCurveReturn the float curve that the binding is pointing to.
GetFloatValueВосстанавливает текущее значение float путем выборки значения кривой на определенном игровом объекте.
GetKeyBrokenRetrieve the specified keyframe broken tangent flag.
GetKeyLeftTangentModeRetrieve the left tangent mode of the keyframe at specified index.
GetKeyRightTangentModeRetrieve the right tangent mode of the keyframe at specified index.
GetObjectReferenceCurveReturn the object reference curve that the binding is pointing to.
GetObjectReferenceCurveBindingsReturns all the object reference curve bindings currently stored in the clip.
SetAdditiveReferencePoseSet the additive reference pose from referenceClip at time for animation clip clip.
SetAnimationClipsУстанавливает массив AnimationClips, чтобы ссылаться на компонент Animation.
SetAnimationEventsЗаменяет все события анимации в анимационном клипе.
SetEditorCurveДобавляет кривую редактора к данному клипу.
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 a given clip.

Delegates

OnCurveWasModifiedTriggered when an animation curve inside an animation clip has been modified.