D
D
Daniel24112021-06-28 08:23:15
C++ / C#
Daniel2411, 2021-06-28 08:23:15

Is it possible to track the click of a ButtonUI button in Unity without triggering the onclick() method?

Hello, is it possible that when the Button is pressed, the onclick() method does not work.
For example: when I hold down the button istrue = true, but when I release the button onclick() didn't work. And vice versa, so that when I press the button, the clamping method does not work (istrue = true).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2021-06-28
@Daniil2411

Can you duplicate questions?
It is enough to think with your head - how does clicking (pressing and releasing) differ from pressing and releasing? And implement the detection of this difference in your code.
So the answer to the question is yes, it is possible.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question