Difference between a normal function and coroutine without yeilding anything

by MrRobot9   Last Updated June 15, 2017 12:13 PM

I just came across a coroutine in my project, which does few calculation, which could have been done using normal function.There is no loop in that coroutine and contains yield return null; in the last line. Is there any specific reason to use coroutine rather than normal function?

void Init(){


IEnumerator Init(){
yield return null;
Tags : unity coroutines

Related Questions

NullReferenceException in StartCoroutine method

Updated November 25, 2016 08:05 AM

Best way to queue animation coroutines in unity

Updated April 15, 2017 00:13 AM