On Swipe
Last updated
Last updated
On Swipe is an Event Listener Node used for executing a Logic Branch after a swipe on an Object.
Scope: Scene, Prefab.
Attribute | Type | Description |
---|---|---|
| ObjectID | The Object in which a swipe triggers the Logic Branch, if none is given in the Input Socket. |
Attribute | Type | Description |
---|---|---|
| Drop-down | Whether a swipe with the left, middle, or right button of the mouse will trigger the Logic. |
Attribute | Type | Description |
---|---|---|
| Drop-down | The direction in which a swipe will trigger the Logic. |
Input | Type | Description |
---|---|---|
| ObjectID | The Object in which a swipe triggers the Logic Branch. |
| Pulse | An Input Pulse that needs to be triggered to start listening to the Event. |
Output | Type | Description |
---|---|---|
Pulse Output (►) | Pulse | A standard Output Pulse, to move onto the next Node along the Logic Branch, once this Node has finished its execution. |
| Vector2 | Length of the swipe in the X and Y directions. |
| ObjectID | The Object received as Input. |
| ObjectID | The ID of the current Event. This can be connected to the Unsubscribe Node to unsubscribe from the Event. |