D
D
Daniel24112021-06-26 18:36:49
C++ / C#
Daniel2411, 2021-06-26 18:36:49

Button problem?

Good evening, I have a prefab, the Button button is hung on it, in the button there are on click () and Pointer Down and Pointer Up methods. The problem is that when I click on the button, Pointer Up fires for a second. Is there some way to fix this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
GavriKos, 2021-06-26
@GavriKos

Do not use these methods at the same time. They kind of duplicate each other.

H
Hixac, 2021-06-26
@Hixac

This method should fire when you release the button, and since this can't be "eradicated" because you always release the button after clicking on it, it's easiest to remove this method or make a condition where it won't work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question