- Home /
Source Gameobject rendered when using prefab
I have a simple 2D game where I have a few prefabs based on gameobjects (e.g. various enemies). I have a spawn script that works as expected; it randomly instantiates the prefabs. However, when the scene is initially run, the original gameobjects are rendered and run through their typical lifecycle. This impacts the UI (as they're displayed if I have them positioned under the camera) as well as game logic such as the player's score. How is this relationship generally handled in Unity?
If I understand you - the "original" (that which the prefab was made from) is typically not in the scene hierarchy - ie. remove them.
Gotcha, was able to delete them from there. Rather counter-intuitive, since it seems to force them to be created within the hierarchy to start.