Quantcast
Channel: Questions in topic: "count"
Viewing all articles
Browse latest Browse all 187

Count Objects with specific colour

$
0
0
Hello Unity Answers. In my scene I have 20 cubes for witch I specify a colour through java script on mouse click. Each of them have a tag "Tile". How do I filter GameObjects[] list to count objects with lets say "blue" colour and perform an action when it's less than specified amount?

Viewing all articles
Browse latest Browse all 187

Trending Articles



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