Animator¶
More information can be found in the Unity API Reference and maybe in the Unity Manual.
Constructors¶
Constructor |
Description |
---|---|
Members¶
Member |
Description |
---|---|
Methods¶
Static methods¶
Method |
Description |
---|---|
Details¶
-
class
Animator
¶ -
-
bool
applyRootMotion
¶
-
Quaternion
bodyRotation
¶
-
AnimatorCullingMode
cullingMode
¶
-
const Quaternion
deltaRotation
¶
-
bool
enabled
¶
-
float
feetPivotActive
¶
-
bool
fireEvents
¶
-
const GameObject
gameObject
¶
-
const float
gravityWeight
¶
-
const bool
hasBoundPlayables
¶
-
const bool
hasRootMotion
¶
-
const bool
hasTransformHierarchy
¶
-
const float
humanScale
¶
-
const bool
isActiveAndEnabled
¶
-
const bool
isHuman
¶
-
const bool
isInitialized
¶
-
const bool
isMatchingTarget
¶
-
const bool
isOptimizable
¶
-
bool
keepAnimatorStateOnDisable
¶
-
const int
layerCount
¶
-
bool
layersAffectMassCenter
¶
-
const float
leftFeetBottomHeight
¶
-
bool
logWarnings
¶
-
string
name
¶
-
const int
parameterCount
¶
-
const float
pivotWeight
¶
-
float
playbackTime
¶
-
float
recorderStartTime
¶
-
float
recorderStopTime
¶
-
const float
rightFeetBottomHeight
¶
-
Quaternion
rootRotation
¶
-
RuntimeAnimatorController
runtimeAnimatorController
¶
-
float
speed
¶
-
bool
stabilizeFeet
¶
-
string
tag
¶
-
const Quaternion
targetRotation
¶
-
AnimatorUpdateMode
updateMode
¶
-
bool
writeDefaultValuesOnDisable
¶
-
void
ApplyBuiltinRootMotion
()¶
-
bool
CompareTag
(string tag)¶
-
void
CrossFade
(string stateName, float normalizedTransitionDuration)¶
-
void
CrossFade
(int stateHashName, float normalizedTransitionDuration)¶
-
void
CrossFade
(string stateName, float normalizedTransitionDuration, int layer)¶
-
void
CrossFade
(int stateHashName, float normalizedTransitionDuration, int layer)¶
-
void
CrossFade
(string stateName, float normalizedTransitionDuration, int layer, float normalizedTimeOffset)¶
-
void
CrossFade
(int stateHashName, float normalizedTransitionDuration, int layer, float normalizedTimeOffset)¶
-
void
CrossFade
(string stateName, float normalizedTransitionDuration, int layer, float normalizedTimeOffset, float normalizedTransitionTime)¶
-
void
CrossFade
(int stateHashName, float normalizedTransitionDuration, int layer, float normalizedTimeOffset, float normalizedTransitionTime)¶
-
void
CrossFadeInFixedTime
(string stateName, float fixedTransitionDuration)¶
-
void
CrossFadeInFixedTime
(int stateHashName, float fixedTransitionDuration)¶
-
void
CrossFadeInFixedTime
(string stateName, float fixedTransitionDuration, int layer)¶
-
void
CrossFadeInFixedTime
(int stateHashName, float fixedTransitionDuration, int layer)¶
-
void
CrossFadeInFixedTime
(string stateName, float fixedTransitionDuration, int layer, float fixedTimeOffset)¶
-
void
CrossFadeInFixedTime
(int stateHashName, float fixedTransitionDuration, int layer, float fixedTimeOffset)¶
-
void
CrossFadeInFixedTime
(string stateName, float fixedTransitionDuration, int layer, float fixedTimeOffset, float normalizedTransitionTime)¶
-
void
CrossFadeInFixedTime
(int stateHashName, float fixedTransitionDuration, int layer, float fixedTimeOffset, float normalizedTransitionTime)¶
-
Transform
GetBoneTransform
(HumanBodyBones humanBoneId)¶
-
bool
GetBool
(string name)¶
-
bool
GetBool
(int id)¶
-
int
GetCurrentAnimatorClipInfoCount
(int layerIndex)¶
-
float
GetFloat
(string name)¶
-
float
GetFloat
(int id)¶
-
int
GetHashCode
()¶
-
Vector3
GetIKHintPosition
(AvatarIKHint hint)¶
-
float
GetIKHintPositionWeight
(AvatarIKHint hint)¶
-
Vector3
GetIKPosition
(AvatarIKGoal goal)¶
-
float
GetIKPositionWeight
(AvatarIKGoal goal)¶
-
Quaternion
GetIKRotation
(AvatarIKGoal goal)¶
-
float
GetIKRotationWeight
(AvatarIKGoal goal)¶
-
int
GetInteger
(string name)¶
-
int
GetInteger
(int id)¶
-
int
GetLayerIndex
(string layerName)¶
-
string
GetLayerName
(int layerIndex)¶
-
float
GetLayerWeight
(int layerIndex)¶
-
int
GetNextAnimatorClipInfoCount
(int layerIndex)¶
-
bool
HasState
(int layerIndex, int stateID)¶
-
void
InterruptMatchTarget
()¶
-
void
InterruptMatchTarget
(bool completeMatch)¶
-
bool
IsInTransition
(int layerIndex)¶
-
bool
IsParameterControlledByCurve
(string name)¶
-
bool
IsParameterControlledByCurve
(int id)¶
-
void
Play
(string stateName)¶
-
void
Play
(int stateNameHash)¶
-
void
Play
(string stateName, int layer)¶
-
void
Play
(int stateNameHash, int layer)¶
-
void
Play
(string stateName, int layer, float normalizedTime)¶
-
void
Play
(int stateNameHash, int layer, float normalizedTime)¶
-
void
PlayInFixedTime
(string stateName)¶
-
void
PlayInFixedTime
(int stateNameHash)¶
-
void
PlayInFixedTime
(string stateName, int layer)¶
-
void
PlayInFixedTime
(int stateNameHash, int layer)¶
-
void
PlayInFixedTime
(string stateName, int layer, float fixedTime)¶
-
void
PlayInFixedTime
(int stateNameHash, int layer, float fixedTime)¶
-
void
Rebind
()¶
-
void
ResetTrigger
(string name)¶
-
void
ResetTrigger
(int id)¶
-
void
SetBoneLocalRotation
(HumanBodyBones humanBoneId, Quaternion rotation)¶
-
void
SetBool
(string name, bool value)¶
-
void
SetBool
(int id, bool value)¶
-
void
SetFloat
(string name, float value)¶
-
void
SetFloat
(int id, float value)¶
-
void
SetFloat
(string name, float value, float dampTime, float deltaTime)¶
-
void
SetFloat
(int id, float value, float dampTime, float deltaTime)¶
-
void
SetIKHintPosition
(AvatarIKHint hint, Vector3 hintPosition)¶
-
void
SetIKHintPositionWeight
(AvatarIKHint hint, float value)¶
-
void
SetIKPosition
(AvatarIKGoal goal, Vector3 goalPosition)¶
-
void
SetIKPositionWeight
(AvatarIKGoal goal, float value)¶
-
void
SetIKRotation
(AvatarIKGoal goal, Quaternion goalRotation)¶
-
void
SetIKRotationWeight
(AvatarIKGoal goal, float value)¶
-
void
SetInteger
(string name, int value)¶
-
void
SetInteger
(int id, int value)¶
-
void
SetLayerWeight
(int layerIndex, float weight)¶
-
void
SetLookAtWeight
(float weight)¶
-
void
SetLookAtWeight
(float weight, float bodyWeight)¶
-
void
SetLookAtWeight
(float weight, float bodyWeight, float headWeight)¶
-
void
SetLookAtWeight
(float weight, float bodyWeight, float headWeight, float eyesWeight)¶
-
void
SetLookAtWeight
(float weight, float bodyWeight, float headWeight, float eyesWeight, float clampWeight)¶
-
void
SetTrigger
(string name)¶
-
void
SetTrigger
(int id)¶
-
void
StartPlayback
()¶
-
void
StartRecording
(int frameCount)¶
-
void
StopPlayback
()¶
-
void
StopRecording
()¶
-
string
ToString
()¶
-
void
Update
(float deltaTime)¶
-
void
WriteDefaultValues
()¶
-
static int
StringToHash
(string name)¶
-
bool