A
A
Alexey Fobius2021-09-08 10:05:55
C++ / C#
Alexey Fobius, 2021-09-08 10:05:55

How to make a list of spawn points in Unity?

There was a small problem, I have a large number of spawn points for NPCs, I created a game object list for them

The problem is that I need to spawn NPCs based on the position and rotation of the spawners themselves (Spawner.transform.position) , but how to specify them I have no idea (do not make me a link to each object)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikolai Sokolov, 2021-09-08
@phobious

What other data is needed there? Is there any reason why the list initially references objects and not transforms?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question