Spawning Objects in Unity without the Clutter

Rusben Guzman
May 22, 2021

--

In my last article about spawning enemies in the scene we still could improve the way that we instantiate the objects. Currently all the enemies appear in the hierarchy windows without any order, this could be a problem when we want to find another object in this window.

Spawning enemies without any order

To fix it we have to add a variable in the SpawnRoutine to store the new enemy, then we have to set the parent in this case the parent will be the spawn manager and this is the result.

--

--

Rusben Guzman
Rusben Guzman

Written by Rusben Guzman

A Software Engineer passionate about game dev and interactive products with Unity. I consider video games to be the artistic expression of programming.

No responses yet