Search Results for

    Show / Hide Table of Contents

    Class LongPressTrigger

    The component that handles the long-press action on a button.

    Inheritance
    System.Object
    LongPressTrigger
    Namespace: black.kit.toybox
    Assembly: cs.temp.dll.dll
    Syntax
    public class LongPressTrigger : UdonSharpBehaviour

    Properties

    IsPressing

    Whether the button is currently pressed.

    Declaration
    public bool IsPressing { get; }
    Property Value
    Type Description
    System.Boolean

    Progress

    The progress of the long-press action.

    Declaration
    public float Progress { get; }
    Property Value
    Type Description
    System.Single

    Threshold

    The threshold time to trigger the event.

    Declaration
    public float Threshold { get; }
    Property Value
    Type Description
    System.Single

    Methods

    InputUse(Boolean, UdonInputEventArgs)

    The calllback when uses the object.

    Declaration
    public override void InputUse(bool value, UdonInputEventArgs args)
    Parameters
    Type Name Description
    System.Boolean value
    UdonInputEventArgs args

    The arguments.

    Interact()

    The callback when interacting the object.

    Declaration
    public override void Interact()

    OnPressing()

    Called when pressing the trigger every frame.

    Declaration
    public void OnPressing()
    In This Article
    Back to top Example Unity documentation