Version: 5.3 (switch to 5.4b)
ЯзыкEnglish
  • C#
  • JS

Язык программирования

Выберите подходящий для вас язык программирования. Все примеры кода будут представлены на выбранном языке.

AnimationUtility

class in UnityEditor

Руководство

Описание

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

Статические переменные

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

Статические функции

CalculateTransformPathCalculates path from root transform to target transform.
GetAnimatableBindingsВозвращает список анимирующихся свойств для определенного анимированного объекта, который привязан к gameObject.
GetAnimatedObjectReturns the animated object that the binding is pointing to.
GetAnimationEventsВосстанавливает все события анимации, связанные с анимационным клипом.
GetCurveBindingsReturns all the float curve bindings currently stored in the clip.
GetEditorCurveReturn the float curve that the binding is pointing to.
GetFloatValueВосстанавливает текущее значение float путем выборки значения кривой на определенном игровом объекте.
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Добавляет кривую редактора к данному клипу.
SetObjectReferenceCurveAdds, modifies or removes an object reference curve in a given clip.

Делегаты

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