James West

Unity Game Development Optimization Tips

Optimize Coroutines

//Fine tune your code for smooth gameplay

Photo by Tudor Baciu on Unsplash

Today I just have quick tip to share to help optimize your C# coroutines for better performance in Unity.

Lets look at a script for spawning enemies.

private IEnumerator SpawnPowerup()
yield return new