C# Класс UnityEngine.Animator

Наследование: Behaviour
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetBoolID bool
GetBoolString bool
GetFloatID float
GetFloatString float
GetIntegerID int
GetIntegerString int
GetQuaternionID Quaternion
GetQuaternionString Quaternion
GetVectorID Vector3
GetVectorString Vector3
INTERNAL_CALL_MatchTarget void
INTERNAL_CALL_SetIKPosition void
INTERNAL_CALL_SetIKRotation void
INTERNAL_CALL_SetLookAtPosition void
INTERNAL_CALL_SetQuaternionID void
INTERNAL_CALL_SetQuaternionString void
INTERNAL_CALL_SetVectorID void
INTERNAL_CALL_SetVectorString void
INTERNAL_get_bodyPosition void
INTERNAL_get_bodyRotation void
INTERNAL_get_rootPosition void
INTERNAL_get_rootRotation void
INTERNAL_set_bodyPosition void
INTERNAL_set_bodyRotation void
INTERNAL_set_rootPosition void
INTERNAL_set_rootRotation void
IsParameterControlledByCurveID bool
IsParameterControlledByCurveString bool
PlaybackRecordedFrame void
SetBoolID void
SetBoolString void
SetFloatID void
SetFloatIDDamp void
SetFloatString void
SetFloatStringDamp void
SetIntegerID void
SetIntegerString void
SetQuaternionID void
SetQuaternionString void
SetVectorID void
SetVectorString void
StartRecording void
StopRecording void
Update void
WriteDefaultPose void

Открытые методы

Метод Описание
Animator ( )
ForceStateNormalizedTime ( float normalizedTime ) : void
GetAnimatorTransitionInfo ( int layerIndex ) : AnimatorTransitionInfo
GetBoneTransform ( HumanBodyBones humanBoneId ) : Transform
GetBool ( int id ) : bool
GetBool ( string name ) : bool
GetCurrentAnimationClipState ( int layerIndex ) : UnityEngine.AnimationInfo[]
GetCurrentAnimatorStateInfo ( int layerIndex ) : AnimatorStateInfo
GetFloat ( int id ) : float
GetFloat ( string name ) : float
GetIKPosition ( AvatarIKGoal goal ) : Vector3
GetIKPositionWeight ( AvatarIKGoal goal ) : float
GetIKRotation ( AvatarIKGoal goal ) : Quaternion
GetIKRotationWeight ( AvatarIKGoal goal ) : float
GetInteger ( int id ) : int
GetInteger ( string name ) : int
GetLayerName ( int layerIndex ) : string
GetLayerWeight ( int layerIndex ) : float
GetNextAnimationClipState ( int layerIndex ) : UnityEngine.AnimationInfo[]
GetNextAnimatorStateInfo ( int layerIndex ) : AnimatorStateInfo
GetQuaternion ( int id ) : Quaternion
GetQuaternion ( string name ) : Quaternion
GetVector ( int id ) : Vector3
GetVector ( string name ) : Vector3
InterruptMatchTarget ( ) : void
InterruptMatchTarget ( bool completeMatch ) : void
IsControlled ( Transform transform ) : bool
IsInTransition ( int layerIndex ) : bool
IsParameterControlledByCurve ( int id ) : bool
IsParameterControlledByCurve ( string name ) : bool
MatchTarget ( Vector3 matchPosition, Quaternion matchRotation, AvatarTarget targetBodyPart, MatchTargetWeightMask weightMask, float startNormalizedTime ) : void
MatchTarget ( Vector3 matchPosition, Quaternion matchRotation, AvatarTarget targetBodyPart, MatchTargetWeightMask weightMask, float startNormalizedTime, float targetNormalizedTime ) : void
SetBool ( int id, bool value ) : void
SetBool ( string name, bool value ) : void
SetFloat ( int id, float value ) : void
SetFloat ( int id, float value, float dampTime, float deltaTime ) : void
SetFloat ( string name, float value ) : void
SetFloat ( string name, float value, float dampTime, float deltaTime ) : 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 ( int id, int value ) : void
SetInteger ( string name, int value ) : void
SetLayerWeight ( int layerIndex, float weight ) : void
SetLookAtPosition ( Vector3 lookAtPosition ) : 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
SetQuaternion ( int id, Quaternion value ) : void
SetQuaternion ( string name, Quaternion value ) : void
SetTarget ( AvatarTarget targetIndex, float targetNormalizedTime ) : void
SetVector ( int id, Vector3 value ) : void
SetVector ( string name, Vector3 value ) : void
StringToHash ( string name ) : int

Приватные методы

Метод Описание
GetBoolID ( int id ) : bool
GetBoolString ( string name ) : bool
GetFloatID ( int id ) : float
GetFloatString ( string name ) : float
GetIntegerID ( int id ) : int
GetIntegerString ( string name ) : int
GetQuaternionID ( int id ) : Quaternion
GetQuaternionString ( string name ) : Quaternion
GetVectorID ( int id ) : Vector3
GetVectorString ( string name ) : Vector3
INTERNAL_CALL_MatchTarget ( Animator self, Vector3 &matchPosition, Quaternion &matchRotation, AvatarTarget targetBodyPart, MatchTargetWeightMask &weightMask, float startNormalizedTime, float targetNormalizedTime ) : void
INTERNAL_CALL_SetIKPosition ( Animator self, AvatarIKGoal goal, Vector3 &goalPosition ) : void
INTERNAL_CALL_SetIKRotation ( Animator self, AvatarIKGoal goal, Quaternion &goalRotation ) : void
INTERNAL_CALL_SetLookAtPosition ( Animator self, Vector3 &lookAtPosition ) : void
INTERNAL_CALL_SetQuaternionID ( Animator self, int id, Quaternion &value ) : void
INTERNAL_CALL_SetQuaternionString ( Animator self, string name, Quaternion &value ) : void
INTERNAL_CALL_SetVectorID ( Animator self, int id, Vector3 &value ) : void
INTERNAL_CALL_SetVectorString ( Animator self, string name, Vector3 &value ) : void
INTERNAL_get_bodyPosition ( Vector3 &value ) : void
INTERNAL_get_bodyRotation ( Quaternion &value ) : void
INTERNAL_get_rootPosition ( Vector3 &value ) : void
INTERNAL_get_rootRotation ( Quaternion &value ) : void
INTERNAL_set_bodyPosition ( Vector3 &value ) : void
INTERNAL_set_bodyRotation ( Quaternion &value ) : void
INTERNAL_set_rootPosition ( Vector3 &value ) : void
INTERNAL_set_rootRotation ( Quaternion &value ) : void
IsParameterControlledByCurveID ( int id ) : bool
IsParameterControlledByCurveString ( string name ) : bool
PlaybackRecordedFrame ( float time ) : void
SetBoolID ( int id, bool value ) : void
SetBoolString ( string name, bool value ) : void
SetFloatID ( int id, float value ) : void
SetFloatIDDamp ( int id, float value, float dampTime, float deltaTime ) : void
SetFloatString ( string name, float value ) : void
SetFloatStringDamp ( string name, float value, float dampTime, float deltaTime ) : void
SetIntegerID ( int id, int value ) : void
SetIntegerString ( string name, int value ) : void
SetQuaternionID ( int id, Quaternion value ) : void
SetQuaternionString ( string name, Quaternion value ) : void
SetVectorID ( int id, Vector3 value ) : void
SetVectorString ( string name, Vector3 value ) : void
StartRecording ( ) : void
StopRecording ( ) : void
Update ( float deltaTime ) : void
WriteDefaultPose ( ) : void

Описание методов

Animator() публичный Метод

public Animator ( )

ForceStateNormalizedTime() публичный Метод

public ForceStateNormalizedTime ( float normalizedTime ) : void
normalizedTime float
Результат void

GetAnimatorTransitionInfo() публичный Метод

public GetAnimatorTransitionInfo ( int layerIndex ) : AnimatorTransitionInfo
layerIndex int
Результат AnimatorTransitionInfo

GetBoneTransform() публичный Метод

public GetBoneTransform ( HumanBodyBones humanBoneId ) : Transform
humanBoneId HumanBodyBones
Результат Transform

GetBool() публичный Метод

public GetBool ( int id ) : bool
id int
Результат bool

GetBool() публичный Метод

public GetBool ( string name ) : bool
name string
Результат bool

GetCurrentAnimationClipState() публичный Метод

public GetCurrentAnimationClipState ( int layerIndex ) : UnityEngine.AnimationInfo[]
layerIndex int
Результат UnityEngine.AnimationInfo[]

GetCurrentAnimatorStateInfo() публичный Метод

public GetCurrentAnimatorStateInfo ( int layerIndex ) : AnimatorStateInfo
layerIndex int
Результат AnimatorStateInfo

GetFloat() публичный Метод

public GetFloat ( int id ) : float
id int
Результат float

GetFloat() публичный Метод

public GetFloat ( string name ) : float
name string
Результат float

GetIKPosition() публичный Метод

public GetIKPosition ( AvatarIKGoal goal ) : Vector3
goal AvatarIKGoal
Результат Vector3

GetIKPositionWeight() публичный Метод

public GetIKPositionWeight ( AvatarIKGoal goal ) : float
goal AvatarIKGoal
Результат float

GetIKRotation() публичный Метод

public GetIKRotation ( AvatarIKGoal goal ) : Quaternion
goal AvatarIKGoal
Результат Quaternion

GetIKRotationWeight() публичный Метод

public GetIKRotationWeight ( AvatarIKGoal goal ) : float
goal AvatarIKGoal
Результат float

GetInteger() публичный Метод

public GetInteger ( int id ) : int
id int
Результат int

GetInteger() публичный Метод

public GetInteger ( string name ) : int
name string
Результат int

GetLayerName() публичный Метод

public GetLayerName ( int layerIndex ) : string
layerIndex int
Результат string

GetLayerWeight() публичный Метод

public GetLayerWeight ( int layerIndex ) : float
layerIndex int
Результат float

GetNextAnimationClipState() публичный Метод

public GetNextAnimationClipState ( int layerIndex ) : UnityEngine.AnimationInfo[]
layerIndex int
Результат UnityEngine.AnimationInfo[]

GetNextAnimatorStateInfo() публичный Метод

public GetNextAnimatorStateInfo ( int layerIndex ) : AnimatorStateInfo
layerIndex int
Результат AnimatorStateInfo

GetQuaternion() публичный Метод

public GetQuaternion ( int id ) : Quaternion
id int
Результат Quaternion

GetQuaternion() публичный Метод

public GetQuaternion ( string name ) : Quaternion
name string
Результат Quaternion

GetVector() публичный Метод

public GetVector ( int id ) : Vector3
id int
Результат Vector3

GetVector() публичный Метод

public GetVector ( string name ) : Vector3
name string
Результат Vector3

InterruptMatchTarget() публичный Метод

public InterruptMatchTarget ( ) : void
Результат void

InterruptMatchTarget() публичный Метод

public InterruptMatchTarget ( bool completeMatch ) : void
completeMatch bool
Результат void

IsControlled() публичный Метод

public IsControlled ( Transform transform ) : bool
transform Transform
Результат bool

IsInTransition() публичный Метод

public IsInTransition ( int layerIndex ) : bool
layerIndex int
Результат bool

IsParameterControlledByCurve() публичный Метод

public IsParameterControlledByCurve ( int id ) : bool
id int
Результат bool

IsParameterControlledByCurve() публичный Метод

public IsParameterControlledByCurve ( string name ) : bool
name string
Результат bool

MatchTarget() публичный Метод

public MatchTarget ( Vector3 matchPosition, Quaternion matchRotation, AvatarTarget targetBodyPart, MatchTargetWeightMask weightMask, float startNormalizedTime ) : void
matchPosition Vector3
matchRotation Quaternion
targetBodyPart AvatarTarget
weightMask MatchTargetWeightMask
startNormalizedTime float
Результат void

MatchTarget() публичный Метод

public MatchTarget ( Vector3 matchPosition, Quaternion matchRotation, AvatarTarget targetBodyPart, MatchTargetWeightMask weightMask, float startNormalizedTime, float targetNormalizedTime ) : void
matchPosition Vector3
matchRotation Quaternion
targetBodyPart AvatarTarget
weightMask MatchTargetWeightMask
startNormalizedTime float
targetNormalizedTime float
Результат void

SetBool() публичный Метод

public SetBool ( int id, bool value ) : void
id int
value bool
Результат void

SetBool() публичный Метод

public SetBool ( string name, bool value ) : void
name string
value bool
Результат void

SetFloat() публичный Метод

public SetFloat ( int id, float value ) : void
id int
value float
Результат void

SetFloat() публичный Метод

public SetFloat ( int id, float value, float dampTime, float deltaTime ) : void
id int
value float
dampTime float
deltaTime float
Результат void

SetFloat() публичный Метод

public SetFloat ( string name, float value ) : void
name string
value float
Результат void

SetFloat() публичный Метод

public SetFloat ( string name, float value, float dampTime, float deltaTime ) : void
name string
value float
dampTime float
deltaTime float
Результат void

SetIKPosition() публичный Метод

public SetIKPosition ( AvatarIKGoal goal, Vector3 goalPosition ) : void
goal AvatarIKGoal
goalPosition Vector3
Результат void

SetIKPositionWeight() публичный Метод

public SetIKPositionWeight ( AvatarIKGoal goal, float value ) : void
goal AvatarIKGoal
value float
Результат void

SetIKRotation() публичный Метод

public SetIKRotation ( AvatarIKGoal goal, Quaternion goalRotation ) : void
goal AvatarIKGoal
goalRotation Quaternion
Результат void

SetIKRotationWeight() публичный Метод

public SetIKRotationWeight ( AvatarIKGoal goal, float value ) : void
goal AvatarIKGoal
value float
Результат void

SetInteger() публичный Метод

public SetInteger ( int id, int value ) : void
id int
value int
Результат void

SetInteger() публичный Метод

public SetInteger ( string name, int value ) : void
name string
value int
Результат void

SetLayerWeight() публичный Метод

public SetLayerWeight ( int layerIndex, float weight ) : void
layerIndex int
weight float
Результат void

SetLookAtPosition() публичный Метод

public SetLookAtPosition ( Vector3 lookAtPosition ) : void
lookAtPosition Vector3
Результат void

SetLookAtWeight() публичный Метод

public SetLookAtWeight ( float weight ) : void
weight float
Результат void

SetLookAtWeight() публичный Метод

public SetLookAtWeight ( float weight, float bodyWeight ) : void
weight float
bodyWeight float
Результат void

SetLookAtWeight() публичный Метод

public SetLookAtWeight ( float weight, float bodyWeight, float headWeight ) : void
weight float
bodyWeight float
headWeight float
Результат void

SetLookAtWeight() публичный Метод

public SetLookAtWeight ( float weight, float bodyWeight, float headWeight, float eyesWeight ) : void
weight float
bodyWeight float
headWeight float
eyesWeight float
Результат void

SetLookAtWeight() публичный Метод

public SetLookAtWeight ( float weight, float bodyWeight, float headWeight, float eyesWeight, float clampWeight ) : void
weight float
bodyWeight float
headWeight float
eyesWeight float
clampWeight float
Результат void

SetQuaternion() публичный Метод

public SetQuaternion ( int id, Quaternion value ) : void
id int
value Quaternion
Результат void

SetQuaternion() публичный Метод

public SetQuaternion ( string name, Quaternion value ) : void
name string
value Quaternion
Результат void

SetTarget() публичный Метод

public SetTarget ( AvatarTarget targetIndex, float targetNormalizedTime ) : void
targetIndex AvatarTarget
targetNormalizedTime float
Результат void

SetVector() публичный Метод

public SetVector ( int id, Vector3 value ) : void
id int
value Vector3
Результат void

SetVector() публичный Метод

public SetVector ( string name, Vector3 value ) : void
name string
value Vector3
Результат void

StringToHash() публичный статический Метод

public static StringToHash ( string name ) : int
name string
Результат int