Jump to content

Does unigine have coroutine function like unity?


photo

Recommended Posts

Posted

How to start a coroutine like unity's "StartCoroutine()" function?

Posted

lgdnpt

There is no coroutine available out of the box, but you can easily implement this on your side. In attachment you can find an example (was tested on 2.15.x only, so it may not compile in 2.16.x).

Need to call CoroutinesManager.Initialize(); inside AppSystemLogic init() in order to make it work.

Thanks!

CoroutinesManager.cs

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted
15 hours ago, silent said:

lgdnpt

There is no coroutine available out of the box, but you can easily implement this on your side. In attachment you can find an example (was tested on 2.15.x only, so it may not compile in 2.16.x).

Thanks!

CoroutinesManager.cs 2.96 kB · 1 download

Thank you very much!

  • Thanks 1
  • 1 month later...
Posted

Hi and big thanks for coroutine script. But I don't understand how to use that script correctly. I try to call methods, but it didn't work.

CoroutinesTest.cs

  • 5 months later...
Posted
I am interested in this too.
Have you called CoroutinesManager.Initialize() at somewhere?
If not, can you try it and share the results if it works?
×
×
  • Create New...