ControllerTransition Class

Summary

A serializable Animancer.ITransition which can create a particular type of Animancer.AnimancerState when passed into Animancer.AnimancerLayer.Play(Animancer.ITransition).
graph BT Type-->Base0["ControllerTransition<ControllerState>"] Base0-->Base1["Transition<ControllerState>"] Base1-->Base2["Object"] Type-.->Interface0["ITransition<ControllerState>"] Type-.->Interface1["ITransitionDetailed"] click Interface1 "/animancer/api/Animancer/ITransitionDetailed" Type-.->Interface2["ITransitionWithEvents"] click Interface2 "/animancer/api/Animancer/ITransitionWithEvents" Type-.->Interface3["ITransition"] click Interface3 "/animancer/api/Animancer/ITransition" Type-.->Interface4["IHasKey"] click Interface4 "/animancer/api/Animancer/IHasKey" Type-.->Interface5["IPolymorphic"] click Interface5 "/animancer/api/Animancer/IPolymorphic" Type-.->Interface6["IHasEvents"] click Interface6 "/animancer/api/Animancer/IHasEvents" Type-.->Interface7["ICopyable<Transition<ControllerState>>"] Type-.->Interface8["ICloneable<Transition<ControllerState>>"] Type-.->Interface9["IAnimationClipCollection"] click Interface9 "/animancer/api/Animancer/IAnimationClipCollection" Type-.->Interface10["ICopyable<ControllerTransition<ControllerState>>"] Type-.->Interface11["ICopyable<ControllerTransition>"] Type["ControllerTransition"] class Type type-node

Syntax

[Serializable]
public class ControllerTransition : ControllerTransition<ControllerState>, 
    ITransition<ControllerState>, ITransitionDetailed, ITransitionWithEvents, ITransition, IHasKey, 
    IPolymorphic, IHasEvents, ICopyable<Transition<ControllerState>>, 
    ICloneable<Transition<ControllerState>>, IAnimationClipCollection, 
    ICopyable<ControllerTransition<ControllerState>>, ICopyable<ControllerTransition>

Remarks

Documentation: Transitions

Attributes

Type Description
SerializableAttribute

Constructors

Name Summary
ControllerTransition() Creates a new Animancer.ControllerTransition.
ControllerTransition(RuntimeAnimatorController) Creates a new Animancer.ControllerTransition with the specified Animator Controller.

Methods

Name Value Summary
Clone(CloneContext) Transition<ControllerState>
Creates a new object with the same type and values this.
CopyFrom(ControllerTransition, CloneContext) void
Copies the contents of `copyFrom` into this object, replacing its previous contents.
CopyFrom(ControllerTransition<ControllerState>, CloneContext) void
Copies the contents of `copyFrom` into this object, replacing its previous contents.
CreateState() ControllerState
Creates and returns a new TState.
TryCreateTransition(Object) ITransitionDetailed
Returns a new Animancer.ControllerTransition if the `target` is an UnityEngine.RuntimeAnimatorController.
static

Operators

Name Value Summary
implicit operator ControllerTransition(RuntimeAnimatorController) ControllerTransition
implicit operator RuntimeAnimatorController(ControllerTransition<ControllerState>) RuntimeAnimatorController