Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Help With A Coroutine

$
0
0
Can't figure this one out. This is what I have (inside the coroutine obviously)...

Code (CSharp):
  1.         Renderer[] renderers = this.gameObject.GetComponentsInChildren<Renderer>();
  2.         foreach(Renderer renderer in renderers){
  3.             renderer.material.Lerp(orgMat, evolveColor, 5f * Time.deltaTime);
  4.         }
I want to have the coroutine pause while this is taking place. I don't want it to continue on until all the renderers material's have been changed. I can't conceive for the...

Help With A Coroutine

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>