Search Results for

    Show / Hide Table of Contents

    Struct AnimSMRequest

    Animation request for an animation state machine.

    Namespace: nickmaltbie.StateMachineUnity
    Assembly: cs.temp.dll.dll
    Syntax
    [Serializable]
    public readonly struct AnimSMRequest

    Constructors

    AnimSMRequest(Int32, Single, Boolean, Single)

    Animation request for an animation state machine.

    Declaration
    public AnimSMRequest(int targetStateHash, float transitionTime = 0F, bool fixedTimeTransition = false, float lockAnimationTime = 0F)
    Parameters
    Type Name Description
    Int32 targetStateHash
    Single transitionTime
    Boolean fixedTimeTransition
    Single lockAnimationTime

    AnimSMRequest(String, Single, Boolean, Single)

    Animation request for an animation state machine.

    Declaration
    public AnimSMRequest(string targetStateName, float transitionTime = 0F, bool fixedTimeTransition = false, float lockAnimationTime = 0F)
    Parameters
    Type Name Description
    String targetStateName
    Single transitionTime
    Boolean fixedTimeTransition
    Single lockAnimationTime

    Fields

    fixedTimeTransition

    Is the transition in fixed time or normalized time.

    Declaration
    public readonly bool fixedTimeTransition
    Field Value
    Type Description
    Boolean

    lockAnimationTime

    Should the animation be locked for a given number of seconds before transitioning to a new state.

    Declaration
    public readonly float lockAnimationTime
    Field Value
    Type Description
    Single

    targetStateHash

    Target state to transition into.

    Declaration
    public readonly int targetStateHash
    Field Value
    Type Description
    Int32

    transitionTime

    Time to take between transition.

    Declaration
    public readonly float transitionTime
    Field Value
    Type Description
    Single
    In This Article
    Back to top State Machine Unity Documentation