G
G
Gagagus2021-06-20 22:36:57
Unity
Gagagus, 2021-06-20 22:36:57

How to make a random spawn?

Help to make a random distribution of a certain number of objects by points. Let's say at 10 points you need to spawn 9 spheres and 1 cube, but each time the spawn should be random. Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Kachan, 2021-06-21
@MANAB

https://stackoverflow.com/questions/108819/best-wa...
Create a list of spawn objects and shuffle them from the link above. Array index - spawn point number.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question