Unity Game Development Optimization Tips

Optimize Coroutines

//Fine tune your code for smooth gameplay

Valdarix Games
2 min readAug 28, 2021

--

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

--

--

Valdarix Games

Turning my passion for video games and software development experience into a focus on video game development.