D
D
Dmitry Korolev2018-05-01 00:55:18
Unity
Dmitry Korolev, 2018-05-01 00:55:18

How to temporarily restrict sending messages from input devices?

I have a problem
when I call a long running operation from a custom editor, the engine freezes while doing it and the clicks I make are queued.
What should be done to temporarily not send them, but wait until the end of the operation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Suren, 2018-05-01
@adressmoeistranici

Of course, I didn’t quite understand the essence of the problem, it would be nice if you describe in more detail, and post the code that does this operation.
But at first glance, this problem can be solved by Korutina
If you don’t know what it is, then here is the article
Article
And describe in more detail, do you call the operation every frame? or after some time? This is all pretty important)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question