Jump to content

Coroutines in Unigine


photo

Recommended Posts

Hi, guys, in other, popular engine ;) there's a mechanism of coroutines, that enables execution of the code outside of main loop Update flow.

It's similar to async code but with ability to schedule execution, i.e. at frame update and or after number of seconds passed.

From within such coroutine method body I can mutate game objects (nodes in Unigine) - as such these coroutines run on the main thread as world nodes can be updated / removed only on the main thread in Unigine.

Is my understanding correct that SDK does not have this implemented, out of the box?

If SDK does not have it, could you please advise which part of the AppLogic (callbacks) can be used to implement such mechanism?

Thanks,

S.

 

Link to comment
×
×
  • Create New...