31-03-2022, 06:54 PM
(31-03-2022, 06:51 PM)NailEngine Wrote: Oh, for sure, I'm doing that. But I guess that relies on those coroutines not yielding WaitForXXX right? Because there are expectations on rendered frames, time, etc. I just want to make sure.
The Generate() coroutine returns a struct containing a string message and a progress percentage. No WaitForSeconds, WaitForEndOfFrame or similar stuff. The main reason this is a coroutine is that you may want to show a progress bar of some sort if your rope is really long and takes more than a few milliseconds to generate.