Search Results for

    Show / Hide Table of Contents

    Class ConditionalActiveRelayToAnimator

    This component transfers parameters to the Animator component of the specified object according to a predetermined sequence when the active state changes. The significant difference from the SequenceActiveRelayToAnimator is that different states can be specified for each turn on and off.

    Inheritance
    System.Object
    ActiveRelayToAnimationBase
    ConditionalActiveRelayToAnimator
    Inherited Members
    ActiveRelayToAnimationBase.NAME_ANIMATOR
    ActiveRelayToAnimationBase.Animator
    ActiveRelayToAnimationBase.IdBool
    ActiveRelayToAnimationBase.IdFloat
    ActiveRelayToAnimationBase.IdInt
    ActiveRelayToAnimationBase.Initialized
    ActiveRelayToAnimationBase.Sequence()
    ActiveRelayToAnimationBase.SetTrigger(Int32, String[], Int32[])
    ActiveRelayToAnimationBase.CreateParameterIds(String[])
    Namespace: black.kit.toybox
    Assembly: cs.temp.dll.dll
    Syntax
    public sealed class ConditionalActiveRelayToAnimator : ActiveRelayToAnimationBase
    Remarks

    Usage (in the inspector of Unity Editor):

    1. Add this component or prefab to the scene.
    2. Specify the parameter names of the animator.
    3. Specify the sequences.

    Properties

    CurrentBool

    The current bool value of the animator.

    Declaration
    protected override bool CurrentBool { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    ActiveRelayToAnimationBase.CurrentBool

    CurrentFloat

    The current float value of the animator.

    Declaration
    protected override float CurrentFloat { get; }
    Property Value
    Type Description
    System.Single
    Overrides
    ActiveRelayToAnimationBase.CurrentFloat

    CurrentInt

    The current integer value of the animator.

    Declaration
    protected override int CurrentInt { get; }
    Property Value
    Type Description
    System.Int32
    Overrides
    ActiveRelayToAnimationBase.CurrentInt

    Methods

    PostInitialize()

    Initialize the hashes of the triggers parameter name.

    Declaration
    protected override void PostInitialize()
    Overrides
    ActiveRelayToAnimationBase.PostInitialize()

    PostSequence()

    Update the sequence of the triggers parameter name.

    Declaration
    protected override void PostSequence()
    Overrides
    ActiveRelayToAnimationBase.PostSequence()

    See Also

    SequenceActiveRelayToAnimator
    In This Article
    Back to top Example Unity documentation