Unity3D – Calling Coroutines From Static Functions

While rebuilding my messaging system I needed a way to call coroutines from static functions. I have built a static coroutine singleton class that will allow you to do this, as well as have complete control over the coroutine firing ability. The code for this can be found here:

From there we can easily call coroutines from static functions simply by doing:



Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>