Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Renderer enable

$
0
0
Hey! I am trying to make an amount of gameobjects render when a boolean is true. Here is my code: if(buyTowerMenuUp == true){ towerPlace[] = GameObject.FindGameObjectsWithTag("TowerPlace"); for(var x = 0; x < towerPlace.length; x++){ towerPlace[x].renderer.enabled; } } Thanks in advance!

Viewing all articles
Browse latest Browse all 171066

Trending Articles



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