• Home
  • Store
    Show / Hide Table of Contents

    Class AnimatedBiStateButton

    Namespace: LeTai.TrueShadow
    Assembly: LeTai.TrueShadow.dll

    Fields

    animationCurve

    Declaration
    public AnimationCurve animationCurve
    Field Value
    Type Description
    UnityEngine.AnimationCurve

    animationDuration

    Declaration
    public float animationDuration
    Field Value
    Type Description
    float

    pressAmount

    0 = fully up 1 = fully down

    Declaration
    protected float pressAmount
    Field Value
    Type Description
    float

    state

    Declaration
    protected AnimatedBiStateButton.State state
    Field Value
    Type Description
    AnimatedBiStateButton.State

    useEnterExitEvents

    Declaration
    public bool useEnterExitEvents
    Field Value
    Type Description
    bool

    Properties

    IsAnimating

    Declaration
    protected bool IsAnimating { get; }
    Property Value
    Type Description
    bool

    Methods

    Animate(float)

    NOP if not overrided

    Declaration
    protected virtual void Animate(float visualPressAmount)
    Parameters
    Type Name Description
    float visualPressAmount

    pressAmount conformed to animationCurve

    OnPointerDown(PointerEventData)

    Declaration
    public void OnPointerDown(PointerEventData eventData)
    Parameters
    Type Name Description
    UnityEngine.EventSystems.PointerEventData eventData

    OnPointerEnter(PointerEventData)

    Declaration
    public void OnPointerEnter(PointerEventData eventData)
    Parameters
    Type Name Description
    UnityEngine.EventSystems.PointerEventData eventData

    OnPointerExit(PointerEventData)

    Declaration
    public void OnPointerExit(PointerEventData eventData)
    Parameters
    Type Name Description
    UnityEngine.EventSystems.PointerEventData eventData

    OnPointerUp(PointerEventData)

    Declaration
    public void OnPointerUp(PointerEventData eventData)
    Parameters
    Type Name Description
    UnityEngine.EventSystems.PointerEventData eventData

    OnWillPress()

    Declaration
    protected virtual void OnWillPress()

    OnWillRelease()

    Declaration
    protected virtual void OnWillRelease()

    Press()

    Declaration
    protected void Press()

    Release()

    Declaration
    protected void Release()

    Events

    willPress

    Declaration
    public event Action willPress
    Event Type
    Type Description
    System.Action

    willRelease

    Declaration
    public event Action willRelease
    Event Type
    Type Description
    System.Action

    Implements

    UnityEngine.EventSystems.IPointerDownHandler
    UnityEngine.EventSystems.IPointerUpHandler
    UnityEngine.EventSystems.IPointerEnterHandler
    UnityEngine.EventSystems.IPointerExitHandler
    UnityEngine.EventSystems.IEventSystemHandler

    Extension Methods

    ExtensionMethods.NextFrames(MonoBehaviour, Action, int)
    In This Article
    Like True Shadow? Your review is greatly appreciated! ⭐⭐⭐⭐⭐ Back to top