Button Long Press

$6
Publisher Kodo Linija
File size 1.16MB
Number of files 16
Latest version 1.0.1
Latest release date 2020-09-16 10:32:12
First release date 2020-09-15 06:55:11
Supported Unity versions 2018.4.2 or higher
No more "Are You Sure?" popups!

A configurable UI Button that executes an event after a long press. It replaces the need to have modal dialogs and click confirmations for sensitive actions, giving friendlier user experience for players.


Features

- Minimal configuration required, just add your style and it's ready for use
- Supports all input methods (Mouse, Touch, Keyboard, Controller)
- Supports new Unity Input System out of the box
- Supports Legacy Input out of the box
- Supports TextMeshPro, or any other text provider (doesn't use text directly)
- Includes a visual hold progress update via a generic Slider (optional)
- On Click Start event for beginning of the hold
- On Click Cancel event for incomplete hold
- On Click Complete event for holding long enough
- Required Hold Time option
- Execute On Release option gives more control over the execution behavior
- Retrigger option
- Ways to get progress percentage and current hold time in code
- Clean code
- Zero Garbage

Asset support forum thread

Top Publisher Assets