Install Asset
Install via Godot
To maintain one source of truth, Godot Asset Library is just a mirror of the old asset library so you can download directly on Godot via the integrated asset library browser

Quick Information

* Coroutines with pararmaters. * Yield until next frame. * Yield for certain amount of time in seconds. * Yield another coroutine.
GodotCoroutineslikeUnity
C# Coroutines in Godot game engine just like in Unity
Add PeakyCoroutine.cs somewhere in your project
Use like this...
public override void _Ready() { Coroutine.Run(TestCoroutine(3f), this); } IEnumerator TestCoroutine(float waittime) { GD.Print("Start " + Time.GetTicksMsec()); yield return new WaitForSeconds(1f); GD.Print("WaitedOneSecond " + Time.GetTicksMsec()); yield return new WaitForSeconds(1f); GD.Print("WaitedAnotherSecond " + Time.GetTicksMsec()); for (int i = 0; i < 20; i++) { yield return new WaitOneFrame(); GD.Print("Waited One frame " + Time.GetTicksMsec()); } yield return TestSubCoroutine(waittime); GD.Print("Final line from parent coroutine"); } IEnumerator TestSubCoroutine(float waittime) { GD.Print("start sub routine " + Time.GetTicksMsec()); yield return new WaitForSeconds(waittime); GD.Print("end sub routine " + Time.GetTicksMsec()); }
I wanted to replicate the following features..
- Coroutines with pararmaters.
- Yield until next frame.
- Yield for certain amount of time in seconds.
- Yield another coroutine.
* Coroutines with pararmaters.
* Yield until next frame.
* Yield for certain amount of time in seconds.
* Yield another coroutine.
Reviews
Quick Information

* Coroutines with pararmaters. * Yield until next frame. * Yield for certain amount of time in seconds. * Yield another coroutine.