hello i need to now how to randomly spawn object i have looked at some totuels but none of them work i am useing vertion 2020.3 i need them to spawn at random in a certon area i am new to unity so if you can i just need a c# code to copy and paste or just download and some instutions of how to us it
What isn’t working? Have you worked through all 69,100 of these videos and they ALL don’t work?

couldn’t you just do a
Vector3[ ] spawnpoint = new Vector3[spawnamount];
for(i=0; i<spawnpoint.length;i++){
spawnpoint = new Vector3(Random.Range(minX,maxX),Random.Range(minY,maxY),Random.Range(minZ,maxZ));
GameObject enemy = Instantiate(enemy,spawnpoint*);*
}
I’m not clear whether you’re asking how to spawn a randomly selected object, spawn an object at a random time interval, or spawn an object at a random location. But the only forum for asking people to just write you code and instructions is this one:
https://forum.unity.com/forums/commercial-job-offering.49/
1 Like