- Home /
The question is answered, right answer was accepted
Spawning enemies in hieararchy
Hi,
I am making a script that spawns enemies. I've managed to get it running but for now I can only make empty objects with it.
My actual question is:
Is it better to make an inactive example of your enemy (in the hieararchy) and then when it has to spawn, make copies from it?
OR
Is it better to let the characters completely be made by your script (for in the hieararchy)?
OR
Am I missing the most obvious way of making enemies in a game :P?
"By making it I only mean the way it looks (cube, capsule, complete maya character) not it's behaviour in the game"
Answer by Jessespike · Nov 04, 2012 at 12:50 AM
Using prefabs are probably the more preferred method. You can create your objects in code if you want, but only coders will be able to update the characters from then. It's up to you.
Thanks for the comment I will probably use prefabs then. (now only figure out what it is in the Unity Documentation =P )