Daily Archives: June 5, 2014

Leave a reply

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:
http://xertz.net/static-coroutine-singleton-class/

From there we can easily call coroutines from static functions simply by doing:
StaticCoroutine.DoCoroutine(MyCoroutine());

Enjoy!

facebooktwittergoogle_plusredditpinterestlinkedinmail