Search Results for

    Show / Hide Table of Contents

    Class ActiveRelayToAnimationBase

    This component transfers parameters to the Animator component of the specified object according to a predetermined sequence when the active state changes.

    Inheritance
    System.Object
    ActiveRelayToAnimationBase
    ConditionalActiveRelayToAnimator
    SequenceActiveRelayToAnimator
    Namespace: black.kit.toybox
    Assembly: cs.temp.dll.dll
    Syntax
    public abstract class ActiveRelayToAnimationBase : UdonSharpBehaviour

    Fields

    NAME_ANIMATOR

    The property name of the animator.

    Declaration
    public const string NAME_ANIMATOR = ""
    Field Value
    Type Description
    System.String

    Properties

    Animator

    The animator component to relay the active state.

    Declaration
    protected Animator Animator { get; }
    Property Value
    Type Description
    Animator

    CurrentBool

    Current boolean value of the animator.

    Declaration
    protected abstract bool CurrentBool { get; }
    Property Value
    Type Description
    System.Boolean

    CurrentFloat

    Current float value of the animator.

    Declaration
    protected abstract float CurrentFloat { get; }
    Property Value
    Type Description
    System.Single

    CurrentInt

    Current integer value of the animator.

    Declaration
    protected abstract int CurrentInt { get; }
    Property Value
    Type Description
    System.Int32

    IdBool

    The ID of the bool parameter name of the animator.

    Declaration
    protected int IdBool { get; }
    Property Value
    Type Description
    System.Int32

    IdFloat

    The ID of the float parameter name of the animator.

    Declaration
    protected int IdFloat { get; }
    Property Value
    Type Description
    System.Int32

    IdInt

    The ID of the int parameter name of the animator.

    Declaration
    protected int IdInt { get; }
    Property Value
    Type Description
    System.Int32

    Initialized

    Initialized the hashes.

    Declaration
    protected bool Initialized { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    CreateParameterIds(String[])

    Create the IDs of the parameters.

    Declaration
    protected static int[] CreateParameterIds(string[] names)
    Parameters
    Type Name Description
    System.String[] names

    The names of the parameters.

    Returns
    Type Description
    System.Int32[]

    The IDs of the parameters.

    PostInitialize()

    Specifies more initialization.

    Declaration
    protected abstract void PostInitialize()

    PostSequence()

    Specifies more sequence.

    Declaration
    protected abstract void PostSequence()

    Sequence()

    Update the sequence.

    Declaration
    protected void Sequence()

    SetTrigger(Int32, String[], Int32[])

    Set the trigger of the animator.

    Declaration
    protected void SetTrigger(int index, string[] names, int[] ids)
    Parameters
    Type Name Description
    System.Int32 index

    The index of the trigger.

    System.String[] names

    The names of the triggers.

    System.Int32[] ids

    The IDs of the triggers.

    In This Article
    Back to top Example Unity documentation