Animator

class in UnityEngine

/

Inherits from:Behaviour

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.
fireEventsSets whether the Animator sends events of type AnimationEvent.
gravityWeightThe current gravity weight based on current animations that are played.
hasBoundPlayablesReturns true if Animator has any playables assigned to it.
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.
keepAnimatorControllerStateOnDisableControls the behaviour of the Animator component when a GameObject is disabled.
layerCountReturns the number of layers in the controller.
layersAffectMassCenterВерно, если дополнительные слои влияют на центр массы.
leftFeetBottomHeightПолучает высоту низа левой ноги.
parameterCountReturns the number of parameters in the controller.
parametersThe AnimatorControllerParameter list used by the animator. (Read Only)
pivotPositionПолучить текущую позицию пивота.
pivotWeightПолучает вес пивота.
playableGraphThe PlayableGraph created by the Animator.
playbackTimeУстанавливает позицию воспроизведения в записывающем буфере.
recorderModeЗадает режим обновления Animator-а.
recorderStartTimeВремя начала первого кадра буфера, относительно кадра, в котором было вызвано StartRecording.
recorderStopTimeВремя окончания записанного клипа с момента вызова StartRecording.
rightFeetBottomHeightПолучает высоту низа правой ноги.
rootPositionКорневая позиция, позиция игрового объекта.
rootRotationКорневой поворот, поворот игрового объекта.
runtimeAnimatorControllerРантайм-представление анимационного контроллера, контролирующего текущий Animator.
speedСкорость воспроизведения Аниматора. 1 - нормальная скорость воспроизведения.
stabilizeFeetАвтоматическая стабилизация ног, во время перехода и смешивания.
targetPositionReturns the position of the target specified by SetTarget.
targetRotationReturns the rotation of the target specified by SetTarget.
updateModeSpecifies the update mode of the Animator.
velocityПолучает дельта-позицию аватара для последнего вычисленного кадра.

Public Functions

ApplyBuiltinRootMotionApply the default Root Motion.
CrossFadeCreates a crossfade from the current state to any other state using normalized times.
CrossFadeInFixedTimeCreates a crossfade from the current state to any other state using times in seconds.
GetAnimatorTransitionInfoReturns an AnimatorTransitionInfo with the informations on the current transition.
GetBehaviourReturns the first StateMachineBehaviour that matches type T or is derived from T. Returns null if none are found.
GetBehavioursReturns all StateMachineBehaviour that match type T or are derived from T. Returns null if none are found.
GetBoneTransformReturns Transform mapped to this human bone id.
GetBoolReturns the value of the given boolean parameter.
GetCurrentAnimatorClipInfoReturns an array of all the AnimatorClipInfo in the current state of the given layer.
GetCurrentAnimatorClipInfoCountReturns the number of AnimatorClipInfo in the current state.
GetCurrentAnimatorStateInfoReturns an AnimatorStateInfo with the information on the current state.
GetFloatReturns the value of the given float parameter.
GetIKHintPositionПолучить позицию цели IK.
GetIKHintPositionWeightПолучить вес перемещения к цели IK (0 = в оригинальной позиции анимации, 1 = в позиции цели).
GetIKPositionПолучить позицию цели IK.
GetIKPositionWeightПолучить вес перемещения к цели IK (0 = в оригинальной позиции анимации, 1 = в позиции цели).
GetIKRotationПолучить поворот цели IK.
GetIKRotationWeightПолучить вес поворота к цели IK (0 = в оригинальной повороте анимации, 1 = в повороте цели).
GetIntegerReturns the value of the given integer parameter.
GetLayerIndexReturns the index of the layer with the given name.
GetLayerNameReturns the layer name.
GetLayerWeightReturns the weight of the layer at the specified index.
GetNextAnimatorClipInfoReturns an array of all the AnimatorClipInfo in the next state of the given layer.
GetNextAnimatorClipInfoCountReturns the number of AnimatorClipInfo in the next state.
GetNextAnimatorStateInfoReturns an AnimatorStateInfo with the information on the next state.
GetParameterSee AnimatorController.parameters.
HasStateReturns true if the state exists in this layer, false otherwise.
InterruptMatchTargetПрерывает автоматическое сопоставление цели.
IsInTransitionReturns true if there is a transition on the given layer, false otherwise.
IsParameterControlledByCurveReturns true if the parameter is controlled by a curve, false otherwise.
MatchTargetAutomatically adjust the GameObject position and rotation.
PlayВоспроизводит состояние.
PlayInFixedTimeВоспроизводит состояние.
RebindСвязать все анимированные свойства и данные меша с Animator-ом.
ResetTriggerResets the value of the given trigger parameter.
SetBoneLocalRotationУстанавливает поворот цели IK.
SetBoolSets the value of the given boolean parameter.
SetFloatSend float values to the Animator to affect transitions.
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).
SetIntegerSets the value of the given integer parameter.
SetLayerWeightSets the weight of the layer at the given index.
SetLookAtPositionУстанавливает позицию направления взгляда (look at).
SetLookAtWeightSet look at weights.
SetTargetУстанавливает AvatarTarget и targetNormalizedTime для текущего состояния.
SetTriggerSets the value of the given trigger parameter.
StartPlaybackУстанавливает аниматор в режим воспроизведения.
StartRecordingУстанавливает аниматор в записывающий режим и выделяет циклический буфер размером frameCount.
StopPlaybackОстанавливает режим воспроизведения аниматора. Когда воспроизведение остановится, аватар продолжит получать контроль из игровой логики.
StopRecordingОстанавливает записывающий режим аниматора.
UpdateEvaluates the animator based on deltaTime.
WriteDefaultValuesForces a write of the default values stored in the animator.

Static Functions

StringToHashGenerates an parameter id from a string.

Inherited members

Variables

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

Public Functions

BroadcastMessageВызывает метод названный methodName на каждом MonoBehaviour этого game object-а или любого из его потомков.
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 в этом игровом объекте и в каждом предке поведения.
TryGetComponentGets the component of the specified type, if it exists.
GetInstanceIDReturns the instance id of the object.
ToStringReturns the name of the object.

Static Functions

DestroyRemoves a GameObject, component or asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object 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.
InstantiateClones the object original and returns the clone.

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.