I asked a similar question to this earlier, but It was not answered quite the way I needed it. I need a default Cube to spawn to a random point when the level is loaded. I need it to be spawned differently each time the level is loaded. Any help would be greatly appreciated.
You can use Random.insideUnitSphere to create a random vector to use for the position.
Hard to say exactl the type of “random spawn” you’re looking for, and exactly what you mean by “spawned differently each time”. Is it completely random? Or do you want a list of spawn points that are selected from randomly? Can there be absolutely no repeated use of a spawn point? Or is it okay to potentially pick the same random spawn point twice?
A quick search finds a number of answers on the topic here: