Show / Hide Table of Contents

Class AnimatorController

Inheritance
Object
Object
RuntimeAnimatorController
AnimatorController
Inherited Members
RuntimeAnimatorController.animationClips
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: UnityEditor.Animations
Assembly: UnityEditor.dll
Syntax
public sealed class AnimatorController : RuntimeAnimatorController

Constructors

| Improve this Doc View Source

AnimatorController()

Declaration
public AnimatorController()

Properties

layers

Declaration
public AnimatorControllerLayer[] layers { get; set; }
Property Value
Type Description
AnimatorControllerLayer[]

parameters

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

Methods

| Improve this Doc View Source

AddEffectiveStateMachineBehaviour(Type, AnimatorState, Int32)

Declaration
[TypeInferenceRule(TypeInferenceRules.TypeReferencedByFirstArgument)]
public StateMachineBehaviour AddEffectiveStateMachineBehaviour(Type stateMachineBehaviourType, AnimatorState state, int layerIndex)
Parameters
Type Name Description
Type stateMachineBehaviourType
AnimatorState state
Int32 layerIndex
Returns
Type Description
StateMachineBehaviour
| Improve this Doc View Source

AddEffectiveStateMachineBehaviour<T>(AnimatorState, Int32)

Declaration
public T AddEffectiveStateMachineBehaviour<T>(AnimatorState state, int layerIndex)
    where T : StateMachineBehaviour
Parameters
Type Name Description
AnimatorState state
Int32 layerIndex
Returns
Type Description
T
Type Parameters
Name Description
T
| Improve this Doc View Source

AddLayer(String)

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

AddLayer(AnimatorControllerLayer)

Declaration
public void AddLayer(AnimatorControllerLayer layer)
Parameters
Type Name Description
AnimatorControllerLayer layer
| Improve this Doc View Source

AddMotion(Motion)

Declaration
public AnimatorState AddMotion(Motion motion)
Parameters
Type Name Description
Motion motion
Returns
Type Description
AnimatorState
| Improve this Doc View Source

AddMotion(Motion, Int32)

Declaration
public AnimatorState AddMotion(Motion motion, int layerIndex)
Parameters
Type Name Description
Motion motion
Int32 layerIndex
Returns
Type Description
AnimatorState
| Improve this Doc View Source

AddParameter(String, AnimatorControllerParameterType)

Declaration
public void AddParameter(string name, AnimatorControllerParameterType type)
Parameters
Type Name Description
String name
AnimatorControllerParameterType type
| Improve this Doc View Source

AddParameter(AnimatorControllerParameter)

Declaration
public void AddParameter(AnimatorControllerParameter paramater)
Parameters
Type Name Description
AnimatorControllerParameter paramater
| Improve this Doc View Source

AllocateAnimatorClip(String)

Declaration
public static AnimationClip AllocateAnimatorClip(string name)
Parameters
Type Name Description
String name
Returns
Type Description
AnimationClip
| Improve this Doc View Source

CreateAnimatorControllerAtPath(String)

Declaration
public static AnimatorController CreateAnimatorControllerAtPath(string path)
Parameters
Type Name Description
String path
Returns
Type Description
AnimatorController
| Improve this Doc View Source

CreateAnimatorControllerAtPathWithClip(String, AnimationClip)

Declaration
public static AnimatorController CreateAnimatorControllerAtPathWithClip(string path, AnimationClip clip)
Parameters
Type Name Description
String path
AnimationClip clip
Returns
Type Description
AnimatorController
| Improve this Doc View Source

CreateBlendTreeInController(String, out BlendTree)

Declaration
public AnimatorState CreateBlendTreeInController(string name, out BlendTree tree)
Parameters
Type Name Description
String name
BlendTree tree
Returns
Type Description
AnimatorState
| Improve this Doc View Source

CreateBlendTreeInController(String, out BlendTree, Int32)

Declaration
public AnimatorState CreateBlendTreeInController(string name, out BlendTree tree, int layerIndex)
Parameters
Type Name Description
String name
BlendTree tree
Int32 layerIndex
Returns
Type Description
AnimatorState

CreateStateMachineBehaviour(MonoScript)

Declaration
public static int CreateStateMachineBehaviour(MonoScript script)
Parameters
Type Name Description
MonoScript script
Returns
Type Description
Int32
| Improve this Doc View Source

FindStateMachineBehaviourContext(StateMachineBehaviour)

Declaration
public static StateMachineBehaviourContext[] FindStateMachineBehaviourContext(StateMachineBehaviour behaviour)
Parameters
Type Name Description
StateMachineBehaviour behaviour
Returns
Type Description
StateMachineBehaviourContext[]
| 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

GetStateEffectiveBehaviours(AnimatorState, Int32)

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

GetStateEffectiveMotion(AnimatorState)

Declaration
public Motion GetStateEffectiveMotion(AnimatorState state)
Parameters
Type Name Description
AnimatorState state
Returns
Type Description
Motion
| Improve this Doc View Source

GetStateEffectiveMotion(AnimatorState, Int32)

Declaration
public Motion GetStateEffectiveMotion(AnimatorState state, int layerIndex)
Parameters
Type Name Description
AnimatorState state
Int32 layerIndex
Returns
Type Description
Motion

MakeUniqueLayerName(String)

Declaration
public string MakeUniqueLayerName(string name)
Parameters
Type Name Description
String name
Returns
Type Description
String

MakeUniqueParameterName(String)

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

RemoveLayer(Int32)

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

RemoveParameter(Int32)

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

RemoveParameter(AnimatorControllerParameter)

Declaration
public void RemoveParameter(AnimatorControllerParameter parameter)
Parameters
Type Name Description
AnimatorControllerParameter parameter
| Improve this Doc View Source

SetAnimatorController(Animator, AnimatorController)

Declaration
public static void SetAnimatorController(Animator animator, AnimatorController controller)
Parameters
Type Name Description
Animator animator
AnimatorController controller
| Improve this Doc View Source

SetStateEffectiveBehaviours(AnimatorState, Int32, StateMachineBehaviour[])

Declaration
public void SetStateEffectiveBehaviours(AnimatorState state, int layerIndex, StateMachineBehaviour[] behaviours)
Parameters
Type Name Description
AnimatorState state
Int32 layerIndex
StateMachineBehaviour[] behaviours
| Improve this Doc View Source

SetStateEffectiveMotion(AnimatorState, Motion)

Declaration
public void SetStateEffectiveMotion(AnimatorState state, Motion motion)
Parameters
Type Name Description
AnimatorState state
Motion motion
| Improve this Doc View Source

SetStateEffectiveMotion(AnimatorState, Motion, Int32)

Declaration
public void SetStateEffectiveMotion(AnimatorState state, Motion motion, int layerIndex)
Parameters
Type Name Description
AnimatorState state
Motion motion
Int32 layerIndex

Extension Methods

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