Class Pressable
Pressable Manipulator, used on Button elements.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class Pressable : PointerManipulator, IManipulator
Constructors
| Name | Description |
|---|---|
| Pressable() | Constructor. |
| Pressable(Action) | Constructor. |
| Pressable(Action<EventBase>) | Constructor. |
Properties
| Name | Description |
|---|---|
| active | Check if the element is currently pressed. |
| keepEventPropagation | When true, the event propagation will not be stopped when the element is pressed. |
| longPressDuration | The duration of a long press in milliseconds. The default value is -1. |
Methods
| Name | Description |
|---|---|
| ForceActivePseudoState() | Force the active pseudo state on the target element. |
| ProcessDownEvent(EventBase, Vector2, int) | Custom handling of pointer enter events. |
| ProcessMoveEvent(EventBase, Vector2) | Custom handling of pointer move events. |
| ProcessUpEvent(EventBase, Vector2, int) | Custom handling of pointer leave events. |
| RegisterCallbacksOnTarget() | Called to register event callbacks from the target element. |
| UnregisterCallbacksFromTarget() | Called to unregister event callbacks from the target element. |
Events
| Name | Description |
|---|---|
| clicked | The event invoked when the element is pressed. |
| clickedWithEventInfo | The event invoked when the element is pressed. |
| longClicked | The event invoked when the element is pressed for a long time. |