Search Results for

    Show / Hide Table of Contents

    Class ButtonHoldTrigger

    Listener for the background button for each setting.

    Inheritance
    object
    ButtonHoldTrigger
    Implements
    IPointerDownHandler
    IPointerUpHandler
    Namespace: AS2.UI
    Assembly: .dll
    Syntax
    public class ButtonHoldTrigger : MonoBehaviour, IPointerDownHandler, IPointerUpHandler

    Fields

    | Edit this page View Source

    mouseClickEvent

    Callback for when the button has been pressed and has just been released. The float parameter specifies the time in seconds for which the button was held down.

    Declaration
    public Action<float> mouseClickEvent
    Field Value
    Type Description
    Action<float>
    | Edit this page View Source

    pressed

    Declaration
    private bool pressed
    Field Value
    Type Description
    bool
    | Edit this page View Source

    timestampPointerDown

    Declaration
    private float timestampPointerDown
    Field Value
    Type Description
    float

    Methods

    | Edit this page View Source

    GetPressedTime()

    Button press duration.

    Declaration
    public float GetPressedTime()
    Returns
    Type Description
    float

    Returns the time the button is being held down. -1 if not pressed.

    | Edit this page View Source

    OnPointerDown(PointerEventData)

    Declaration
    public void OnPointerDown(PointerEventData eventData)
    Parameters
    Type Name Description
    PointerEventData eventData
    | Edit this page View Source

    OnPointerUp(PointerEventData)

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

    Implements

    IPointerDownHandler
    IPointerUpHandler
    • Edit this page
    • View Source
    In this article
    Back to top AmoebotSim 2.0 Documentation v1.11
    Copyright © 2025 AmoebotSim 2.0 Authors
    Generated by DocFX