#Coroutine
1 messages · Page 1 of 1 (latest)
Yes
No, they need to be outside of it.
but my code is in void update
Coroutines are regular methods, just like Update, you add them to the class
You will have to move the code that needs to wait from Update to your coroutine
why doesnt this work
It doesnt let me add curly brackets
so how am i supposed to tell unity what this method is saying
Look at how the documentation does it
tthey use the curly brackets
okay i got the brackets
but now the method is red
and the potential fixes dont work
Good. You get the red underline because you need to yield at least once in that