Show / Hide Table of Contents

Class LongPressDetector

Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
UnityEngine.EventSystems.UIBehaviour
LongPressDetector
Namespace: BennyKok.RuntimeDebug.Components.UI
Assembly: com.bennykok.runtime-debug-action.dll
Syntax
public class LongPressDetector : UIBehaviour, IPointerDownHandler, IPointerUpHandler, IPointerExitHandler, IEventSystemHandler

Fields

longPressduration

Declaration
public float longPressduration
Field Value
Type Description
System.Single

onLongPress

Declaration
public UnityEvent onLongPress
Field Value
Type Description
UnityEngine.Events.UnityEvent

onPress

Declaration
public UnityEvent onPress
Field Value
Type Description
UnityEngine.Events.UnityEvent

pressDuration

Declaration
public float pressDuration
Field Value
Type Description
System.Single

Methods

OnPointerDown(PointerEventData)

Declaration
public void OnPointerDown(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
In This Article
👆 RuntimeDebugAction by ❤️ BennyKok