Hi I’ve been looking for an example of creating and running a coroutine with c# in godot. I’ve checked out the gdscript reference documentation but am not sure how to translate that for c# syntax.
Searches online haven’t provided me with any examples either so I was curious if anyone had an example of creating and starting a coroutine with a simple timer on it as reference? Thank you for your help.
Hi thanks for the reply. This is a general knowledge question as I was familiar with using coroutines in Unity but when I was curious about how to use them in godot with C# I couldn’t find any examples. At the moment I don’t need to run one but I will keep tween in mind. I was just hoping for a code example on how to declare a coroutine and how to start it in godot using C#
Thank you, I’ve seen examples of calling it in a loop. It if you make a coroutine that you simply want to execute with an await how would you call it? In unity it was StartCoroutine(name) to fire off a coroutine.