Replies: 1 comment
-
Hey, I am not really sure what you are asking. Modern JavaScript introduces await/async functions that lets you write coroutines - which appear synchronous from the point of view of the code. The unium REST interface is synchronous, so all unity functions need to finish before it can return the response. For async unity code you really need to use websockets. There is an example here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi again !
There is a way that in the JS side I can wait until unity function is done?
Beta Was this translation helpful? Give feedback.
All reactions