Version: 5.4

Animator

class in UnityEngine

/

Inherits from:Experimental.Director.DirectorPlayer

Switch to Manual

Description

Интерфейс для контроля анимационной системы Mecanim.

Variables

angularVelocityПолучает дельта-позицию аватара для последнего вычисленного кадра.
applyRootMotionДолжно ли быть применено корневое движение (root motion)?
avatarПолучает/Устанавливает текущий Аватар.
bodyPositionПозиция центра массы тела.
bodyRotationВращение центра массы тела.
cullingModeКонтролирует отсев данного компонента Animator.
deltaPositionПолучает дельта-позицию аватара для последнего вычисленного кадра.
deltaRotationПолучает дельта-вращение аватара для последнего вычисленного кадра.
feetPivotActiveBlends pivot point between body center of mass and feet pivot. At 0%, the blending point is body center of mass. At 100%, the blending point is feet pivot.
gravityWeightThe current gravity weight based on current animations that are played.
hasRootMotionReturns true if the current rig has root motion.
hasTransformHierarchyReturns true if the object has a transform hierarchy.
humanScaleReturns the scale of the current Avatar for a humanoid rig, (1 by default if the rig is generic).
isHumanReturns true if the current rig is humanoid, false if it is generic.
isInitializedReturns whether the animator is initialized successfully.
isMatchingTargetЕсли автоматическое сопоставление активно.
isOptimizableReturns true if the current rig is optimizable with AnimatorUtility.OptimizeTransformHierarchy.
layerCountКоличество слоев AnimatorController-а.
layersAffectMassCenterВерно, если дополнительные слои влияют на центр массы.
leftFeetBottomHeightПолучает высоту низа левой ноги.
linearVelocityBlendingWhen linearVelocityBlending is set to true, the root motion velocity and angular velocity will be blended linearly.
parameterCountКоличество слоев AnimatorController-а.
parametersРантайм-представление анимационного контроллера, контролирующего текущий Animator.
pivotPositionПолучить текущую позицию пивота.
pivotWeightПолучает вес пивота.
playbackTimeУстанавливает позицию воспроизведения в записывающем буфере.
recorderModeЗадает режим обновления Animator-а.
recorderStartTimeВремя начала первого кадра буфера, относительно кадра, в котором было вызвано StartRecording.
recorderStopTimeВремя окончания записанного клипа с момента вызова StartRecording.
rightFeetBottomHeightПолучает высоту низа правой ноги.
rootPositionКорневая позиция, позиция игрового объекта.
rootRotationКорневой поворот, поворот игрового объекта.
runtimeAnimatorControllerРантайм-представление анимационного контроллера, контролирующего текущий Animator.
speedСкорость воспроизведения Аниматора. 1 - нормальная скорость воспроизведения.
stabilizeFeetАвтоматическая стабилизация ног, во время перехода и смешивания.
targetPositionВозвращает позицию цели, указанной SetTarget(AvatarTarget targetIndex, float targetNormalizedTime)).
targetRotationВозвращает вращение цели указанной посредством SetTarget(AvatarTarget targetIndex, float targetNormalizedTime)).
updateModeЗадает режим обновления Animator-а.
velocityПолучает дельта-позицию аватара для последнего вычисленного кадра.

Public Functions

ApplyBuiltinRootMotionApply the default Root Motion.
CrossFadeSee IAnimatorControllerPlayable.CrossFade.
CrossFadeInFixedTimeКоличество слоев AnimatorController-а.
GetAnimatorTransitionInfoSee IAnimatorControllerPlayable.GetAnimatorTransitionInfo.
GetBehaviourReturn the first StateMachineBehaviour that match type T or derived from T. Return null if none are found.
GetBehavioursReturns all StateMachineBehaviour that match type T or are derived from T. Returns null if none are found.
GetBoneTransformВозвращает трансформ представляющий кость гуманоида с данным id.
GetBoolSee IAnimatorControllerPlayable.GetBool.
GetCurrentAnimatorClipInfoSee IAnimatorControllerPlayable.GetCurrentAnimatorClipInfo.
GetCurrentAnimatorStateInfoSee IAnimatorControllerPlayable.GetCurrentAnimatorStateInfo.
GetFloatКоличество слоев AnimatorController-а.
GetIKHintPositionПолучить позицию цели IK.
GetIKHintPositionWeightПолучить вес перемещения к цели IK (0 = в оригинальной позиции анимации, 1 = в позиции цели).
GetIKPositionПолучить позицию цели IK.
GetIKPositionWeightПолучить вес перемещения к цели IK (0 = в оригинальной позиции анимации, 1 = в позиции цели).
GetIKRotationПолучить поворот цели IK.
GetIKRotationWeightПолучить вес поворота к цели IK (0 = в оригинальной повороте анимации, 1 = в повороте цели).
GetIntegerSee IAnimatorControllerPlayable.GetInteger.
GetLayerIndexSee IAnimatorControllerPlayable.GetLayerIndex.
GetLayerNameSee IAnimatorControllerPlayable.GetLayerName.
GetLayerWeightSee IAnimatorControllerPlayable.GetLayerWeight.
GetNextAnimatorClipInfoSee IAnimatorControllerPlayable.GetNextAnimatorClipInfo.
GetNextAnimatorStateInfoSee IAnimatorControllerPlayable.GetNextAnimatorStateInfo.
GetParameterКоличество слоев AnimatorController-а.
HasStateКоличество слоев AnimatorController-а.
InterruptMatchTargetПрерывает автоматическое сопоставление цели.
IsInTransitionSee IAnimatorControllerPlayable.IsInTransition.
IsParameterControlledByCurveSee IAnimatorControllerPlayable.IsParameterControlledByCurve.
MatchTargetАвтоматически настраивает положение и поворот игрового объекта, так чтобы AvatarTarget достиг matchPosition когда текущее состояние будет в указанном прогрессе.
PlayКоличество слоев AnimatorController-а.
PlayInFixedTimeSee IAnimatorControllerPlayable.PlayInFixedTime.
RebindСвязать все анимированные свойства и данные меша с Animator-ом.
ResetTriggerSee IAnimatorControllerPlayable.ResetTrigger.
SetBoneLocalRotationУстанавливает поворот цели IK.
SetBoolSee IAnimatorControllerPlayable.SetBool.
SetFloatSee IAnimatorControllerPlayable.SetFloat.
SetIKHintPositionУстанавливает позицию цели IK.
SetIKHintPositionWeightПолучить вес перемещения к цели IK (0 = в оригинальной позиции анимации, 1 = в позиции цели).
SetIKPositionУстанавливает позицию цели IK.
SetIKPositionWeightSets the translative weight of an IK goal (0 = at the original animation before IK, 1 = at the goal).
SetIKRotationУстанавливает поворот цели IK.
SetIKRotationWeightУстанавливает вращательный вес цели IK (0 = вращение до IK, 1 = вращение в цели IK).
SetIntegerSee IAnimatorControllerPlayable.SetInteger.
SetLayerWeightSee IAnimatorControllerPlayable.SetLayerWeight.
SetLookAtPositionУстанавливает позицию направления взгляда (look at).
SetLookAtWeightSet look at weights.
SetTargetУстанавливает AvatarTarget и targetNormalizedTime для текущего состояния.
SetTriggerSee IAnimatorControllerPlayable.SetTrigger.
StartPlaybackУстанавливает аниматор в режим воспроизведения.
StartRecordingУстанавливает аниматор в записывающий режим и выделяет циклический буфер размером frameCount.
StopPlaybackОстанавливает режим воспроизведения аниматора. Когда воспроизведение остановится, аватар продолжит получать контроль из игровой логики.
StopRecordingОстанавливает записывающий режим аниматора.
UpdateEvaluates the animator based on deltaTime.

Static Functions

StringToHashГенерирует параметр - id из строки.

Inherited members

Variables

enabledВключенное Поведение обновляется, выключенное Поведение не обновляется.
isActiveAndEnabledHas the Behaviour had enabled called.
gameObjectИгровой объект к которому прикреплён данный компонент. Компонент всегда прикреплён к игровому объекту.
tagТег данного игрового объекта.
transformThe Transform attached to this GameObject (null if there is none attached).
hideFlagsShould the object be hidden, saved with the scene or modifiable by the user?
nameThe name of the object.

Public Functions

BroadcastMessageВызывает метод с именем methodName на каждом скрипте MonoBehaviour этого игрового объекта или на любом из его потомков.
CompareTagПомечен ли данный игровой объект тегом tag?
GetComponentВозвращает компонент типа type, если он прикреплен к игровому объекту и null, если не прикреплен.
GetComponentInChildrenВозвращает компонент типа type в GameObject или некоторого его потомка через поиск в глубину.
GetComponentInParentВозвращает компонент типа type в GameObject или любого из его родителей.
GetComponentsВозвращает все компоненты типа type в GameObject.
GetComponentsInChildrenВозвращает все компоненты типа type в GameObject или любому из его потомков.
GetComponentsInParentВозвращает все компоненты типа type в GameObject или любому из его родителей.
SendMessageВызывает метод с именем methodName в каждом MonoBehaviour на этом объекте.
SendMessageUpwardsВызывает метод с именем methodName в каждом MonoBehaviour в этом игровом объекте и в каждом предке поведения.
GetTimeReturns the Player's current local time.
GetTimeUpdateModeReturns the current DirectorUpdateMode.
PlayStarts playing a Playable tree.
SetTimeSets the Player's local time.
SetTimeUpdateModeSpecifies the way the Player's will increment when it is playing.
StopStop the playback of the Player and Playable.
GetInstanceIDReturns the instance id of the object.
ToStringReturns the name of the game object.

Static Functions

DestroyУдаляет GameObject, Component или Asset.
DestroyImmediateDestroys the object obj immediately.
DontDestroyOnLoadMakes the object target not be destroyed automatically when loading a new scene.
FindObjectOfTypeReturns the first active loaded object of Type type.
FindObjectsOfTypeReturns a list of all active loaded objects of Type type.
InstantiateReturns a copy of the object original.

Operators

boolDoes the object exist?
operator !=Compares if two objects refer to a different object.
operator ==Compares two object references to see if they refer to the same object.