Quantcast
Channel: Questions in topic: "choose"
Viewing all articles
Browse latest Browse all 81

Choose random Gameobject from array?

$
0
0
Hi, sorry if this has been asked before, but I haven't found any answer. I'm trying to make my script choose a random gameobject from my array. GameObject[] spawnPoints = GameObject.FindGameObjectsWithTag("point"); How do I pick a random object from that array? Thanks, Andreas.

Viewing all articles
Browse latest Browse all 81

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>