Trouble With Creating A Collection of Enemy Prefabs and Spawning Them
Hey I'm currently having trouble creating a list of enemy prefabs and then spawning them. I'm not quite sure how to do this and am very new to programming on Unity. So far all I've been able to do is pretty much follow the Space shooter tutorials but now i want to create a list of 3 different types of enemies and then spawn them somewhere within a defined area at the top of the game screen. Any help woeld be amazingly appreciated.
PNGs (any kind of picture) is a bad way to show scripts. Text is better. Use the "computer code" markup to make it look good.
Pictures can't be Searched for words, and can't be pasted for testing.
Your answer
![](https://koobas.hobune.stream/wayback/20220612050927im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Help with spawning Prefabs that go towards a player 2 Answers
AI spawns in face-down... 2 Answers
What is the best way to spawn preplaced and preshaped groups of enemies? 0 Answers
How can I stop enemies spawning when the spawner is visible by the camera? 0 Answers
Making an endless hallway with random objects spawning 0 Answers