Widget buttons - active and deactivate buttons by dragging mouse/finger

kalauczen
Sat, 06 Mar 2021 20:16:16 +0000
UI

Hi.

I’m trying to make movement buttons for my android game, but i have a problem with i can’t solve it.

Im trying to make buttons that are active when pressed and/or when a player move his finger on that button.
When i use “On Hovered” and “On Unhovered”, buttons works fine when i move finger from one button to another, all of them active and deactivate. But this works ONLY when i touch screen outside of buttons and drag my finger to them.

When i press a for example Button1 directly, and move my finger to a Button2, it wont activate Button2 because Button1 is still pressed/locked until its released.

Is there’s a way to disable buttons pressing, so it can only detect hovering?

Or Is there’s another way to active buttons when player press and move a finger on it and deactive when finger was moved away from a button.

3 posts - 1 participant