Spawning Objects in Unity without the Clutter
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.
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.