Hello,
I’m trying to figure something out here… I’ve got a script running a fairly heavy procedure, and I want to be able to yield it if it starts to take too long…
I’ve got the script calls in a coroutine already, but the yield statements don’t really have too many options to control when the routine will break… you can either have it wait for the next update (which is taking much longer than expected), or arbitrarily hang the routine for a while…
What I wanted to do was check, during the loops in my script, if a given amount of time has started since the loops began and if so, yield until next frame.
The problem is that I don’t know if there is a time value somewhere that gets updated even behind the update cycle… the Time class properties (according to the docs) all update in between frames, so they’re no good for this… I wanted a value that would update even during the update cycle.
Is there such a thing?
As always, thanks in advance
Cheers