C
C
Creator God2020-01-26 14:06:35
C++ / C#
Creator God, 2020-01-26 14:06:35

How to make objects spawn randomly in Unity?

How to make objects appear in random places in a 2d game in Unity, and the shape of these objects is also determined by randomness?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
twobomb, 2020-01-26
@twobomb

Well, these can be pseudo random places, that is, we collect an array of predetermined coordinates of places where objects can appear and then randomly select from the array. Well, if they are completely random, then we determine, for example, in which ranges of coordinates objects can appear and randomly determine the place. The same with the form, we prepare a certain form and choose randomly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question