Class Clickable
Clickable Manipulator, used on Button elements.
Inherited Members
UnityEngine.UIElements.Clickable.clickedWithEventInfo
UnityEngine.UIElements.Clickable.clicked
Namespace: UnityEngine.Dt.App.UI
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, Int64, Int64)
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. |
Int64 | delay | The delay before the first click event is triggered. |
Int64 | 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()
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. |