Unity Game Development Optimization Tips
Optimize Coroutines
//Fine tune your code for smooth gameplay
2 min readAug 28, 2021
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…