- Home /
How do you instantiate specific prefabs with specific spawn points in arrays?
I have two gameobject arrays: One that holds three different spawn point types, and the other holds three different prefabs to be instantiated at the spawn points. I have more spawn points in the spawn points array than the prefabs array.
How would I go about instantiating specific prefabs to specific spawn points in the array?
Example: I have prefabs 1, 2, and 3 as well as prefabbed spawn points 1, 2, and 3. The spawn points array has 8 prefabbed spawn points consisting of 1, 2, and 3. I'm trying to instantiate prefab 1 at spawn point 1, prefab 2 at spawn point 2, and prefab 3 at spawn point 3.
Your answer
Follow this Question
Related Questions
Prefab files marked 'modified' everytime in git 1 Answer
Creating Scene Chunk in 2d game and Altering Prefab 0 Answers
Minimum distance between cubes 1 Answer
MeshCollider instead of CapsuleCollider for TreeBrush 0 Answers
Problem with NGUI Removing and destroying Prefabs UIobjects in runTime 0 Answers