Search Results for

    Show / Hide Table of Contents

    Class TransitionFromAttribute

    Transition attribute to manage transitions between states for a state machine.

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

    Constructors

    TransitionFromAttribute(Type, Type)

    Transition from a given state to another state.

    Declaration
    public TransitionFromAttribute(Type triggerEvent, Type fromState)
    Parameters
    Type Name Description
    Type triggerEvent

    Trigger event to cause transition.

    Type fromState

    New state to transition to upon trigger.

    Implements

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