Class Clickable
Clickable Manipulator, used on Button elements.
Implements
Inherited Members
Clickable.clickedWithEventInfo
Clickable.clicked
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class Clickable : Clickable, IManipulator
Constructors
Clickable(Action)
Constructor.
Declaration
public Clickable(Action handler)
Parameters
Type | Name | Description |
---|---|---|
Action | handler | The handler to invoke when the click event is triggered. |
Clickable(Action, long, long)
Constructor.
Declaration
public Clickable(Action handler, long delay, long interval)
Parameters
Type | Name | Description |
---|---|---|
Action | handler | The handler to invoke when the click event is triggered. |
long | delay | The delay before the first click event is triggered. |
long | interval | The interval between two click events. |
Clickable(Action<EventBase>)
Constructor.
Declaration
public Clickable(Action<EventBase> handler)
Parameters
Type | Name | Description |
---|---|---|
Action<EventBase> | handler | The handler to invoke when the click event is triggered. |
Methods
ForceActivePseudoState()
Force the active pseudo state on the target element.
Declaration
public void ForceActivePseudoState()
ForceRemoveActivePseudoState()
Force the remove of active pseudo state on the target element.
Declaration
public void ForceRemoveActivePseudoState()
ProcessMoveEvent(EventBase, Vector2)
This method processes the move event sent to the target Element.
Declaration
protected override void ProcessMoveEvent(EventBase evt, Vector2 localPosition)
Parameters
Type | Name | Description |
---|---|---|
EventBase | evt | The base event to process. |
Vector2 | localPosition | The local position of the pointer. |