Show / Hide Table of Contents

Class Animator

Inheritance
Object
Object
Component
Behaviour
Animator
Inherited Members
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.transform
Component.gameObject
Component.GetComponent(Type)
Component.GetComponent<T>()
Component.GetComponent(String)
Component.GetComponentInChildren(Type, Boolean)
Component.GetComponentInChildren(Type)
Component.GetComponentInChildren<T>(Boolean)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren(Type, Boolean)
Component.GetComponentsInChildren(Type)
Component.GetComponentsInChildren<T>(Boolean)
Component.GetComponentsInChildren<T>(Boolean, List<T>)
Component.GetComponentsInChildren<T>()
Component.GetComponentsInChildren<T>(List<T>)
Component.GetComponentInParent(Type)
Component.GetComponentInParent<T>()
Component.GetComponentsInParent(Type, Boolean)
Component.GetComponentsInParent(Type)
Component.GetComponentsInParent<T>(Boolean)
Component.GetComponentsInParent<T>(Boolean, List<T>)
Component.GetComponentsInParent<T>()
Component.GetComponents(Type)
Component.GetComponents(Type, List<Component>)
Component.GetComponents<T>(List<T>)
Component.tag
Component.GetComponents<T>()
Component.CompareTag(String)
Component.SendMessageUpwards(String, Object, SendMessageOptions)
Component.SendMessageUpwards(String, Object)
Component.SendMessageUpwards(String)
Component.SendMessageUpwards(String, SendMessageOptions)
Component.SendMessage(String, Object)
Component.SendMessage(String)
Component.SendMessage(String, Object, SendMessageOptions)
Component.SendMessage(String, SendMessageOptions)
Component.BroadcastMessage(String, Object, SendMessageOptions)
Component.BroadcastMessage(String, Object)
Component.BroadcastMessage(String)
Component.BroadcastMessage(String, SendMessageOptions)
Object.GetInstanceID()
Object.GetHashCode()
Object.Equals(Object)
Object.name
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate(Object, Transform, Boolean)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Instantiate<T>(T, Transform, Boolean)
Object.Destroy(Object, Single)
Object.Destroy(Object)
Object.DestroyImmediate(Object, Boolean)
Object.DestroyImmediate(Object)
Object.FindObjectsOfType(Type)
Object.DontDestroyOnLoad(Object)
Object.hideFlags
Object.DestroyObject(Object, Single)
Object.DestroyObject(Object)
Object.FindSceneObjectsOfType(Type)
Object.FindObjectsOfTypeIncludingAssets(Type)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.FindObjectsOfTypeAll(Type)
Object.FindObjectOfType(Type)
Object.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
Assembly: UnityEngine.dll
Syntax
public class Animator : Behaviour

Properties

angularVelocity

Declaration
public Vector3 angularVelocity { get; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

animatePhysics

Declaration
[Obsolete("Animator.animatePhysics has been deprecated. Use Animator.updateMode instead.")]
public bool animatePhysics { get; set; }
Property Value
Type Description
Boolean

applyRootMotion

Declaration
public bool applyRootMotion { get; set; }
Property Value
Type Description
Boolean

avatar

Declaration
public Avatar avatar { get; set; }
Property Value
Type Description
Avatar
| Improve this Doc View Source

bodyPosition

Declaration
public Vector3 bodyPosition { get; set; }
Property Value
Type Description
Vector3
| Improve this Doc View Source

bodyRotation

Declaration
public Quaternion bodyRotation { get; set; }
Property Value
Type Description
Quaternion

cullingMode

Declaration
public AnimatorCullingMode cullingMode { get; set; }
Property Value
Type Description
AnimatorCullingMode

deltaPosition

Declaration
public Vector3 deltaPosition { get; }
Property Value
Type Description
Vector3

deltaRotation

Declaration
public Quaternion deltaRotation { get; }
Property Value
Type Description
Quaternion

feetPivotActive

Declaration
public float feetPivotActive { get; set; }
Property Value
Type Description
Single

fireEvents

Declaration
public bool fireEvents { get; set; }
Property Value
Type Description
Boolean

gravityWeight

Declaration
public float gravityWeight { get; }
Property Value
Type Description
Single

hasBoundPlayables

Declaration
public bool hasBoundPlayables { get; }
Property Value
Type Description
Boolean

hasRootMotion

Declaration
public bool hasRootMotion { get; }
Property Value
Type Description
Boolean

hasTransformHierarchy

Declaration
public bool hasTransformHierarchy { get; }
Property Value
Type Description
Boolean

humanScale

Declaration
public float humanScale { get; }
Property Value
Type Description
Single

isHuman

Declaration
public bool isHuman { get; }
Property Value
Type Description
Boolean

isInitialized

Declaration
public bool isInitialized { get; }
Property Value
Type Description
Boolean

isMatchingTarget

Declaration
public bool isMatchingTarget { get; }
Property Value
Type Description
Boolean

isOptimizable

Declaration
public bool isOptimizable { get; }
Property Value
Type Description
Boolean

keepAnimatorControllerStateOnDisable

Declaration
public bool keepAnimatorControllerStateOnDisable { get; set; }
Property Value
Type Description
Boolean

layerCount

Declaration
public int layerCount { get; }
Property Value
Type Description
Int32

layersAffectMassCenter

Declaration
public bool layersAffectMassCenter { get; set; }
Property Value
Type Description
Boolean

leftFeetBottomHeight

Declaration
public float leftFeetBottomHeight { get; }
Property Value
Type Description
Single

linearVelocityBlending

Declaration
[Obsolete("Animator.linearVelocityBlending is no longer used and has been deprecated.")]
public bool linearVelocityBlending { get; set; }
Property Value
Type Description
Boolean

logWarnings

Declaration
public bool logWarnings { get; set; }
Property Value
Type Description
Boolean

parameterCount

Declaration
public int parameterCount { get; }
Property Value
Type Description
Int32

parameters

Declaration
public AnimatorControllerParameter[] parameters { get; }
Property Value
Type Description
AnimatorControllerParameter[]

pivotPosition

Declaration
public Vector3 pivotPosition { get; }
Property Value
Type Description
Vector3

pivotWeight

Declaration
public float pivotWeight { get; }
Property Value
Type Description
Single
| Improve this Doc View Source

playableGraph

Declaration
public PlayableGraph playableGraph { get; }
Property Value
Type Description
PlayableGraph

playbackTime

Declaration
public float playbackTime { get; set; }
Property Value
Type Description
Single

recorderMode

Declaration
public AnimatorRecorderMode recorderMode { get; }
Property Value
Type Description
AnimatorRecorderMode
| Improve this Doc View Source

recorderStartTime

Declaration
public float recorderStartTime { get; set; }
Property Value
Type Description
Single
| Improve this Doc View Source

recorderStopTime

Declaration
public float recorderStopTime { get; set; }
Property Value
Type Description
Single

rightFeetBottomHeight

Declaration
public float rightFeetBottomHeight { get; }
Property Value
Type Description
Single

rootPosition

Declaration
public Vector3 rootPosition { get; set; }
Property Value
Type Description
Vector3

rootRotation

Declaration
public Quaternion rootRotation { get; set; }
Property Value
Type Description
Quaternion

runtimeAnimatorController

Declaration
public RuntimeAnimatorController runtimeAnimatorController { get; set; }
Property Value
Type Description
RuntimeAnimatorController

speed

Declaration
public float speed { get; set; }
Property Value
Type Description
Single

stabilizeFeet

Declaration
public bool stabilizeFeet { get; set; }
Property Value
Type Description
Boolean

targetPosition

Declaration
public Vector3 targetPosition { get; }
Property Value
Type Description
Vector3

targetRotation

Declaration
public Quaternion targetRotation { get; }
Property Value
Type Description
Quaternion

updateMode

Declaration
public AnimatorUpdateMode updateMode { get; set; }
Property Value
Type Description
AnimatorUpdateMode

velocity

Declaration
public Vector3 velocity { get; }
Property Value
Type Description
Vector3

Methods

ApplyBuiltinRootMotion()

Declaration
public void ApplyBuiltinRootMotion()
| Improve this Doc View Source

CrossFade(Int32, Single)

Declaration
public void CrossFade(int stateHashName, float normalizedTransitionDuration)
Parameters
Type Name Description
Int32 stateHashName
Single normalizedTransitionDuration
| Improve this Doc View Source

CrossFade(Int32, Single, Int32)

Declaration
public void CrossFade(int stateHashName, float normalizedTransitionDuration, int layer)
Parameters
Type Name Description
Int32 stateHashName
Single normalizedTransitionDuration
Int32 layer
| Improve this Doc View Source

CrossFade(Int32, Single, Int32, Single)

Declaration
public void CrossFade(int stateHashName, float normalizedTransitionDuration, int layer, float normalizedTimeOffset)
Parameters
Type Name Description
Int32 stateHashName
Single normalizedTransitionDuration
Int32 layer
Single normalizedTimeOffset

CrossFade(Int32, Single, Int32, Single, Single)

Declaration
public void CrossFade(int stateHashName, float normalizedTransitionDuration, [DefaultValue("-1")] int layer, [DefaultValue("0.0f")] float normalizedTimeOffset, [DefaultValue("0.0f")] float normalizedTransitionTime)
Parameters
Type Name Description
Int32 stateHashName
Single normalizedTransitionDuration
Int32 layer
Single normalizedTimeOffset
Single normalizedTransitionTime
| Improve this Doc View Source

CrossFade(String, Single)

Declaration
public void CrossFade(string stateName, float normalizedTransitionDuration)
Parameters
Type Name Description
String stateName
Single normalizedTransitionDuration
| Improve this Doc View Source

CrossFade(String, Single, Int32)

Declaration
public void CrossFade(string stateName, float normalizedTransitionDuration, int layer)
Parameters
Type Name Description
String stateName
Single normalizedTransitionDuration
Int32 layer
| Improve this Doc View Source

CrossFade(String, Single, Int32, Single)

Declaration
public void CrossFade(string stateName, float normalizedTransitionDuration, int layer, float normalizedTimeOffset)
Parameters
Type Name Description
String stateName
Single normalizedTransitionDuration
Int32 layer
Single normalizedTimeOffset
| Improve this Doc View Source

CrossFade(String, Single, Int32, Single, Single)

Declaration
public void CrossFade(string stateName, float normalizedTransitionDuration, [DefaultValue("-1")] int layer, [DefaultValue("float.NegativeInfinity")] float normalizedTimeOffset, [DefaultValue("0.0f")] float normalizedTransitionTime)
Parameters
Type Name Description
String stateName
Single normalizedTransitionDuration
Int32 layer
Single normalizedTimeOffset
Single normalizedTransitionTime
| Improve this Doc View Source

CrossFadeInFixedTime(Int32, Single)

Declaration
public void CrossFadeInFixedTime(int stateHashName, float fixedTransitionDuration)
Parameters
Type Name Description
Int32 stateHashName
Single fixedTransitionDuration
| Improve this Doc View Source

CrossFadeInFixedTime(Int32, Single, Int32)

Declaration
public void CrossFadeInFixedTime(int stateHashName, float fixedTransitionDuration, int layer)
Parameters
Type Name Description
Int32 stateHashName
Single fixedTransitionDuration
Int32 layer
| Improve this Doc View Source

CrossFadeInFixedTime(Int32, Single, Int32, Single)

Declaration
public void CrossFadeInFixedTime(int stateHashName, float fixedTransitionDuration, int layer, float fixedTimeOffset)
Parameters
Type Name Description
Int32 stateHashName
Single fixedTransitionDuration
Int32 layer
Single fixedTimeOffset

CrossFadeInFixedTime(Int32, Single, Int32, Single, Single)

Declaration
public void CrossFadeInFixedTime(int stateHashName, float fixedTransitionDuration, [DefaultValue("-1")] int layer, [DefaultValue("0.0f")] float fixedTimeOffset, [DefaultValue("0.0f")] float normalizedTransitionTime)
Parameters
Type Name Description
Int32 stateHashName
Single fixedTransitionDuration
Int32 layer
Single fixedTimeOffset
Single normalizedTransitionTime
| Improve this Doc View Source

CrossFadeInFixedTime(String, Single)

Declaration
public void CrossFadeInFixedTime(string stateName, float fixedTransitionDuration)
Parameters
Type Name Description
String stateName
Single fixedTransitionDuration
| Improve this Doc View Source

CrossFadeInFixedTime(String, Single, Int32)

Declaration
public void CrossFadeInFixedTime(string stateName, float fixedTransitionDuration, int layer)
Parameters
Type Name Description
String stateName
Single fixedTransitionDuration
Int32 layer
| Improve this Doc View Source

CrossFadeInFixedTime(String, Single, Int32, Single)

Declaration
public void CrossFadeInFixedTime(string stateName, float fixedTransitionDuration, int layer, float fixedTimeOffset)
Parameters
Type Name Description
String stateName
Single fixedTransitionDuration
Int32 layer
Single fixedTimeOffset
| Improve this Doc View Source

CrossFadeInFixedTime(String, Single, Int32, Single, Single)

Declaration
public void CrossFadeInFixedTime(string stateName, float fixedTransitionDuration, [DefaultValue("-1")] int layer, [DefaultValue("0.0f")] float fixedTimeOffset, [DefaultValue("0.0f")] float normalizedTransitionTime)
Parameters
Type Name Description
String stateName
Single fixedTransitionDuration
Int32 layer
Single fixedTimeOffset
Single normalizedTransitionTime
| Improve this Doc View Source

ForceStateNormalizedTime(Single)

Declaration
[Obsolete("ForceStateNormalizedTime is deprecated. Please use Play or CrossFade instead.")]
public void ForceStateNormalizedTime(float normalizedTime)
Parameters
Type Name Description
Single normalizedTime
| Improve this Doc View Source

GetAnimatorTransitionInfo(Int32)

Declaration
public AnimatorTransitionInfo GetAnimatorTransitionInfo(int layerIndex)
Parameters
Type Name Description
Int32 layerIndex
Returns
Type Description
AnimatorTransitionInfo
| Improve this Doc View Source

GetBehaviour<T>()

Declaration
public T GetBehaviour<T>()
    where T : StateMachineBehaviour
Returns
Type Description
T
Type Parameters
Name Description
T
| Improve this Doc View Source

GetBehaviours(Int32, Int32)

Declaration
public StateMachineBehaviour[] GetBehaviours(int fullPathHash, int layerIndex)
Parameters
Type Name Description
Int32 fullPathHash
Int32 layerIndex
Returns
Type Description
StateMachineBehaviour[]
| Improve this Doc View Source

GetBehaviours<T>()

Declaration
public T[] GetBehaviours<T>()
    where T : StateMachineBehaviour
Returns
Type Description
T[]
Type Parameters
Name Description
T
| Improve this Doc View Source

GetBoneTransform(HumanBodyBones)

Declaration
public Transform GetBoneTransform(HumanBodyBones humanBoneId)
Parameters
Type Name Description
HumanBodyBones humanBoneId
Returns
Type Description
Transform
| Improve this Doc View Source

GetBool(Int32)

Declaration
public bool GetBool(int id)
Parameters
Type Name Description
Int32 id
Returns
Type Description
Boolean
| Improve this Doc View Source

GetBool(String)

Declaration
public bool GetBool(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Boolean

GetCurrentAnimatorClipInfo(Int32)

Declaration
public AnimatorClipInfo[] GetCurrentAnimatorClipInfo(int layerIndex)
Parameters
Type Name Description
Int32 layerIndex
Returns
Type Description
AnimatorClipInfo[]
| Improve this Doc View Source

GetCurrentAnimatorClipInfo(Int32, List<AnimatorClipInfo>)

Declaration
public void GetCurrentAnimatorClipInfo(int layerIndex, List<AnimatorClipInfo> clips)
Parameters
Type Name Description
Int32 layerIndex
List<AnimatorClipInfo> clips
| Improve this Doc View Source

GetCurrentAnimatorClipInfoCount(Int32)

Declaration
public int GetCurrentAnimatorClipInfoCount(int layerIndex)
Parameters
Type Name Description
Int32 layerIndex
Returns
Type Description
Int32
| Improve this Doc View Source

GetCurrentAnimatorStateInfo(Int32)

Declaration
public AnimatorStateInfo GetCurrentAnimatorStateInfo(int layerIndex)
Parameters
Type Name Description
Int32 layerIndex
Returns
Type Description
AnimatorStateInfo
| Improve this Doc View Source

GetFloat(Int32)

Declaration
public float GetFloat(int id)
Parameters
Type Name Description
Int32 id
Returns
Type Description
Single
| Improve this Doc View Source

GetFloat(String)

Declaration
public float GetFloat(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Single
| Improve this Doc View Source

GetIKHintPosition(AvatarIKHint)

Declaration
public Vector3 GetIKHintPosition(AvatarIKHint hint)
Parameters
Type Name Description
AvatarIKHint hint
Returns
Type Description
Vector3
| Improve this Doc View Source

GetIKHintPositionWeight(AvatarIKHint)

Declaration
public float GetIKHintPositionWeight(AvatarIKHint hint)
Parameters
Type Name Description
AvatarIKHint hint
Returns
Type Description
Single
| Improve this Doc View Source

GetIKPosition(AvatarIKGoal)

Declaration
public Vector3 GetIKPosition(AvatarIKGoal goal)
Parameters
Type Name Description
AvatarIKGoal goal
Returns
Type Description
Vector3
| Improve this Doc View Source

GetIKPositionWeight(AvatarIKGoal)

Declaration
public float GetIKPositionWeight(AvatarIKGoal goal)
Parameters
Type Name Description
AvatarIKGoal goal
Returns
Type Description
Single
| Improve this Doc View Source

GetIKRotation(AvatarIKGoal)

Declaration
public Quaternion GetIKRotation(AvatarIKGoal goal)
Parameters
Type Name Description
AvatarIKGoal goal
Returns
Type Description
Quaternion
| Improve this Doc View Source

GetIKRotationWeight(AvatarIKGoal)

Declaration
public float GetIKRotationWeight(AvatarIKGoal goal)
Parameters
Type Name Description
AvatarIKGoal goal
Returns
Type Description
Single
| Improve this Doc View Source

GetInteger(Int32)

Declaration
public int GetInteger(int id)
Parameters
Type Name Description
Int32 id
Returns
Type Description
Int32
| Improve this Doc View Source

GetInteger(String)

Declaration
public int GetInteger(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Int32

GetLayerIndex(String)

Declaration
public int GetLayerIndex(string layerName)
Parameters
Type Name Description
String layerName
Returns
Type Description
Int32

GetLayerName(Int32)

Declaration
public string GetLayerName(int layerIndex)
Parameters
Type Name Description
Int32 layerIndex
Returns
Type Description
String

GetLayerWeight(Int32)

Declaration
public float GetLayerWeight(int layerIndex)
Parameters
Type Name Description
Int32 layerIndex
Returns
Type Description
Single

GetNextAnimatorClipInfo(Int32)

Declaration
public AnimatorClipInfo[] GetNextAnimatorClipInfo(int layerIndex)
Parameters
Type Name Description
Int32 layerIndex
Returns
Type Description
AnimatorClipInfo[]
| Improve this Doc View Source

GetNextAnimatorClipInfo(Int32, List<AnimatorClipInfo>)

Declaration
public void GetNextAnimatorClipInfo(int layerIndex, List<AnimatorClipInfo> clips)
Parameters
Type Name Description
Int32 layerIndex
List<AnimatorClipInfo> clips
| Improve this Doc View Source

GetNextAnimatorClipInfoCount(Int32)

Declaration
public int GetNextAnimatorClipInfoCount(int layerIndex)
Parameters
Type Name Description
Int32 layerIndex
Returns
Type Description
Int32
| Improve this Doc View Source

GetNextAnimatorStateInfo(Int32)

Declaration
public AnimatorStateInfo GetNextAnimatorStateInfo(int layerIndex)
Parameters
Type Name Description
Int32 layerIndex
Returns
Type Description
AnimatorStateInfo
| Improve this Doc View Source

GetParameter(Int32)

Declaration
public AnimatorControllerParameter GetParameter(int index)
Parameters
Type Name Description
Int32 index
Returns
Type Description
AnimatorControllerParameter
| Improve this Doc View Source

GetQuaternion(Int32)

Declaration
[Obsolete("GetQuaternion is deprecated.")]
public Quaternion GetQuaternion(int id)
Parameters
Type Name Description
Int32 id
Returns
Type Description
Quaternion
| Improve this Doc View Source

GetQuaternion(String)

Declaration
[Obsolete("GetQuaternion is deprecated.")]
public Quaternion GetQuaternion(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Quaternion
| Improve this Doc View Source

GetVector(Int32)

Declaration
[Obsolete("GetVector is deprecated.")]
public Vector3 GetVector(int id)
Parameters
Type Name Description
Int32 id
Returns
Type Description
Vector3
| Improve this Doc View Source

GetVector(String)

Declaration
[Obsolete("GetVector is deprecated.")]
public Vector3 GetVector(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Vector3

HasState(Int32, Int32)

Declaration
public bool HasState(int layerIndex, int stateID)
Parameters
Type Name Description
Int32 layerIndex
Int32 stateID
Returns
Type Description
Boolean
| Improve this Doc View Source

InterruptMatchTarget()

Declaration
public void InterruptMatchTarget()

InterruptMatchTarget(Boolean)

Declaration
public void InterruptMatchTarget([DefaultValue("true")] bool completeMatch)
Parameters
Type Name Description
Boolean completeMatch

IsInTransition(Int32)

Declaration
public bool IsInTransition(int layerIndex)
Parameters
Type Name Description
Int32 layerIndex
Returns
Type Description
Boolean
| Improve this Doc View Source

IsParameterControlledByCurve(Int32)

Declaration
public bool IsParameterControlledByCurve(int id)
Parameters
Type Name Description
Int32 id
Returns
Type Description
Boolean
| Improve this Doc View Source

IsParameterControlledByCurve(String)

Declaration
public bool IsParameterControlledByCurve(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Boolean
| Improve this Doc View Source

MatchTarget(Vector3, Quaternion, AvatarTarget, MatchTargetWeightMask, Single)

Declaration
public void MatchTarget(Vector3 matchPosition, Quaternion matchRotation, AvatarTarget targetBodyPart, MatchTargetWeightMask weightMask, float startNormalizedTime)
Parameters
Type Name Description
Vector3 matchPosition
Quaternion matchRotation
AvatarTarget targetBodyPart
MatchTargetWeightMask weightMask
Single startNormalizedTime
| Improve this Doc View Source

MatchTarget(Vector3, Quaternion, AvatarTarget, MatchTargetWeightMask, Single, Single)

Declaration
public void MatchTarget(Vector3 matchPosition, Quaternion matchRotation, AvatarTarget targetBodyPart, MatchTargetWeightMask weightMask, float startNormalizedTime, [DefaultValue("1")] float targetNormalizedTime)
Parameters
Type Name Description
Vector3 matchPosition
Quaternion matchRotation
AvatarTarget targetBodyPart
MatchTargetWeightMask weightMask
Single startNormalizedTime
Single targetNormalizedTime
| Improve this Doc View Source

Play(Int32)

Declaration
public void Play(int stateNameHash)
Parameters
Type Name Description
Int32 stateNameHash
| Improve this Doc View Source

Play(Int32, Int32)

Declaration
public void Play(int stateNameHash, int layer)
Parameters
Type Name Description
Int32 stateNameHash
Int32 layer

Play(Int32, Int32, Single)

Declaration
public void Play(int stateNameHash, [DefaultValue("-1")] int layer, [DefaultValue("float.NegativeInfinity")] float normalizedTime)
Parameters
Type Name Description
Int32 stateNameHash
Int32 layer
Single normalizedTime
| Improve this Doc View Source

Play(String)

Declaration
public void Play(string stateName)
Parameters
Type Name Description
String stateName
| Improve this Doc View Source

Play(String, Int32)

Declaration
public void Play(string stateName, int layer)
Parameters
Type Name Description
String stateName
Int32 layer
| Improve this Doc View Source

Play(String, Int32, Single)

Declaration
public void Play(string stateName, [DefaultValue("-1")] int layer, [DefaultValue("float.NegativeInfinity")] float normalizedTime)
Parameters
Type Name Description
String stateName
Int32 layer
Single normalizedTime
| Improve this Doc View Source

PlayInFixedTime(Int32)

Declaration
public void PlayInFixedTime(int stateNameHash)
Parameters
Type Name Description
Int32 stateNameHash
| Improve this Doc View Source

PlayInFixedTime(Int32, Int32)

Declaration
public void PlayInFixedTime(int stateNameHash, int layer)
Parameters
Type Name Description
Int32 stateNameHash
Int32 layer

PlayInFixedTime(Int32, Int32, Single)

Declaration
public void PlayInFixedTime(int stateNameHash, [DefaultValue("-1")] int layer, [DefaultValue("float.NegativeInfinity")] float fixedTime)
Parameters
Type Name Description
Int32 stateNameHash
Int32 layer
Single fixedTime
| Improve this Doc View Source

PlayInFixedTime(String)

Declaration
public void PlayInFixedTime(string stateName)
Parameters
Type Name Description
String stateName
| Improve this Doc View Source

PlayInFixedTime(String, Int32)

Declaration
public void PlayInFixedTime(string stateName, int layer)
Parameters
Type Name Description
String stateName
Int32 layer
| Improve this Doc View Source

PlayInFixedTime(String, Int32, Single)

Declaration
public void PlayInFixedTime(string stateName, [DefaultValue("-1")] int layer, [DefaultValue("float.NegativeInfinity")] float fixedTime)
Parameters
Type Name Description
String stateName
Int32 layer
Single fixedTime
| Improve this Doc View Source

Rebind()

Declaration
public void Rebind()
| Improve this Doc View Source

ResetTrigger(Int32)

Declaration
public void ResetTrigger(int id)
Parameters
Type Name Description
Int32 id
| Improve this Doc View Source

ResetTrigger(String)

Declaration
public void ResetTrigger(string name)
Parameters
Type Name Description
String name
| Improve this Doc View Source

SetBoneLocalRotation(HumanBodyBones, Quaternion)

Declaration
public void SetBoneLocalRotation(HumanBodyBones humanBoneId, Quaternion rotation)
Parameters
Type Name Description
HumanBodyBones humanBoneId
Quaternion rotation
| Improve this Doc View Source

SetBool(Int32, Boolean)

Declaration
public void SetBool(int id, bool value)
Parameters
Type Name Description
Int32 id
Boolean value
| Improve this Doc View Source

SetBool(String, Boolean)

Declaration
public void SetBool(string name, bool value)
Parameters
Type Name Description
String name
Boolean value
| Improve this Doc View Source

SetFloat(Int32, Single)

Declaration
public void SetFloat(int id, float value)
Parameters
Type Name Description
Int32 id
Single value
| Improve this Doc View Source

SetFloat(Int32, Single, Single, Single)

Declaration
public void SetFloat(int id, float value, float dampTime, float deltaTime)
Parameters
Type Name Description
Int32 id
Single value
Single dampTime
Single deltaTime
| Improve this Doc View Source

SetFloat(String, Single)

Declaration
public void SetFloat(string name, float value)
Parameters
Type Name Description
String name
Single value
| Improve this Doc View Source

SetFloat(String, Single, Single, Single)

Declaration
public void SetFloat(string name, float value, float dampTime, float deltaTime)
Parameters
Type Name Description
String name
Single value
Single dampTime
Single deltaTime
| Improve this Doc View Source

SetIKHintPosition(AvatarIKHint, Vector3)

Declaration
public void SetIKHintPosition(AvatarIKHint hint, Vector3 hintPosition)
Parameters
Type Name Description
AvatarIKHint hint
Vector3 hintPosition
| Improve this Doc View Source

SetIKHintPositionWeight(AvatarIKHint, Single)

Declaration
public void SetIKHintPositionWeight(AvatarIKHint hint, float value)
Parameters
Type Name Description
AvatarIKHint hint
Single value
| Improve this Doc View Source

SetIKPosition(AvatarIKGoal, Vector3)

Declaration
public void SetIKPosition(AvatarIKGoal goal, Vector3 goalPosition)
Parameters
Type Name Description
AvatarIKGoal goal
Vector3 goalPosition
| Improve this Doc View Source

SetIKPositionWeight(AvatarIKGoal, Single)

Declaration
public void SetIKPositionWeight(AvatarIKGoal goal, float value)
Parameters
Type Name Description
AvatarIKGoal goal
Single value
| Improve this Doc View Source

SetIKRotation(AvatarIKGoal, Quaternion)

Declaration
public void SetIKRotation(AvatarIKGoal goal, Quaternion goalRotation)
Parameters
Type Name Description
AvatarIKGoal goal
Quaternion goalRotation
| Improve this Doc View Source

SetIKRotationWeight(AvatarIKGoal, Single)

Declaration
public void SetIKRotationWeight(AvatarIKGoal goal, float value)
Parameters
Type Name Description
AvatarIKGoal goal
Single value
| Improve this Doc View Source

SetInteger(Int32, Int32)

Declaration
public void SetInteger(int id, int value)
Parameters
Type Name Description
Int32 id
Int32 value
| Improve this Doc View Source

SetInteger(String, Int32)

Declaration
public void SetInteger(string name, int value)
Parameters
Type Name Description
String name
Int32 value

SetLayerWeight(Int32, Single)

Declaration
public void SetLayerWeight(int layerIndex, float weight)
Parameters
Type Name Description
Int32 layerIndex
Single weight
| Improve this Doc View Source

SetLookAtPosition(Vector3)

Declaration
public void SetLookAtPosition(Vector3 lookAtPosition)
Parameters
Type Name Description
Vector3 lookAtPosition
| Improve this Doc View Source

SetLookAtWeight(Single)

Declaration
public void SetLookAtWeight(float weight)
Parameters
Type Name Description
Single weight
| Improve this Doc View Source

SetLookAtWeight(Single, Single)

Declaration
public void SetLookAtWeight(float weight, float bodyWeight)
Parameters
Type Name Description
Single weight
Single bodyWeight
| Improve this Doc View Source

SetLookAtWeight(Single, Single, Single)

Declaration
public void SetLookAtWeight(float weight, float bodyWeight, float headWeight)
Parameters
Type Name Description
Single weight
Single bodyWeight
Single headWeight
| Improve this Doc View Source

SetLookAtWeight(Single, Single, Single, Single)

Declaration
public void SetLookAtWeight(float weight, float bodyWeight, float headWeight, float eyesWeight)
Parameters
Type Name Description
Single weight
Single bodyWeight
Single headWeight
Single eyesWeight
| Improve this Doc View Source

SetLookAtWeight(Single, Single, Single, Single, Single)

Declaration
public void SetLookAtWeight(float weight, [DefaultValue("0.0f")] float bodyWeight, [DefaultValue("1.0f")] float headWeight, [DefaultValue("0.0f")] float eyesWeight, [DefaultValue("0.5f")] float clampWeight)
Parameters
Type Name Description
Single weight
Single bodyWeight
Single headWeight
Single eyesWeight
Single clampWeight
| Improve this Doc View Source

SetQuaternion(Int32, Quaternion)

Declaration
[Obsolete("SetQuaternion is deprecated.")]
public void SetQuaternion(int id, Quaternion value)
Parameters
Type Name Description
Int32 id
Quaternion value
| Improve this Doc View Source

SetQuaternion(String, Quaternion)

Declaration
[Obsolete("SetQuaternion is deprecated.")]
public void SetQuaternion(string name, Quaternion value)
Parameters
Type Name Description
String name
Quaternion value

SetTarget(AvatarTarget, Single)

Declaration
public void SetTarget(AvatarTarget targetIndex, float targetNormalizedTime)
Parameters
Type Name Description
AvatarTarget targetIndex
Single targetNormalizedTime
| Improve this Doc View Source

SetTrigger(Int32)

Declaration
public void SetTrigger(int id)
Parameters
Type Name Description
Int32 id
| Improve this Doc View Source

SetTrigger(String)

Declaration
public void SetTrigger(string name)
Parameters
Type Name Description
String name
| Improve this Doc View Source

SetVector(Int32, Vector3)

Declaration
[Obsolete("SetVector is deprecated.")]
public void SetVector(int id, Vector3 value)
Parameters
Type Name Description
Int32 id
Vector3 value
| Improve this Doc View Source

SetVector(String, Vector3)

Declaration
[Obsolete("SetVector is deprecated.")]
public void SetVector(string name, Vector3 value)
Parameters
Type Name Description
String name
Vector3 value

StartPlayback()

Declaration
public void StartPlayback()

StartRecording(Int32)

Declaration
public void StartRecording(int frameCount)
Parameters
Type Name Description
Int32 frameCount

StopPlayback()

Declaration
public void StopPlayback()

StopRecording()

Declaration
public void StopRecording()

StringToHash(String)

Declaration
public static int StringToHash(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Int32

Update(Single)

Declaration
public void Update(float deltaTime)
Parameters
Type Name Description
Single deltaTime

WriteDefaultValues()

Declaration
public void WriteDefaultValues()

Extension Methods

AnimatorJobExtensions.BindStreamTransform(Animator, Transform)
AnimatorJobExtensions.BindStreamProperty(Animator, Transform, Type, String)
AnimatorJobExtensions.BindStreamProperty(Animator, Transform, Type, String, Boolean)
AnimatorJobExtensions.BindSceneTransform(Animator, Transform)
AnimatorJobExtensions.BindSceneProperty(Animator, Transform, Type, String)
AnimatorJobExtensions.BindSceneProperty(Animator, Transform, Type, String, Boolean)
AnimatorJobExtensions.OpenAnimationStream(Animator, ref AnimationStream)
AnimatorJobExtensions.CloseAnimationStream(Animator, ref AnimationStream)
AnimatorJobExtensions.ResolveAllStreamHandles(Animator)
AnimatorJobExtensions.ResolveAllSceneHandles(Animator)
MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX