Search Results for

    Show / Hide Table of Contents

    Class TransitionOnAnimationCompleteAttribute

    Transition attribute to transition to a new state upon completion of a current animation.

    Inheritance
    Object
    Attribute
    TransitionAttribute
    AnimationTransitionAttribute
    TransitionOnAnimationCompleteAttribute
    Implements
    ITransition<Type>
    Inherited Members
    AnimationTransitionAttribute.TransitionTime
    AnimationTransitionAttribute.FixedTimeTransition
    AnimationTransitionAttribute.AnimationLockTime
    AnimationTransitionAttribute.OnTransition(IStateMachine<Type>)
    TransitionAttribute.TriggerEvent
    TransitionAttribute.TargetState
    Namespace: nickmaltbie.StateMachineUnity.Attributes
    Assembly: cs.temp.dll.dll
    Syntax
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
    public class TransitionOnAnimationCompleteAttribute : AnimationTransitionAttribute, ITransition<Type>

    Constructors

    TransitionOnAnimationCompleteAttribute(Type, Single, Boolean)

    Transition to another state upon completion of the animation for the current state.

    Declaration
    public TransitionOnAnimationCompleteAttribute(Type targetState, float transitionTime = 0F, bool fixedTimeTransition = false)
    Parameters
    Type Name Description
    Type targetState

    New state to transition to upon trigger.

    Single transitionTime

    Fixed time to transition to new state.

    Boolean fixedTimeTransition

    Is this transition in fixed time (true) or normalized time (false).

    Implements

    ITransition<TState>
    In This Article
    Back to top State Machine Unity Documentation