Quantcast
Channel: Questions in topic: "renderer.enabled"
Viewing all articles
Browse latest Browse all 99

if 4 objects touched the block it will be visible or unvisible

$
0
0
function OnCollisionEnter (collision : Collision) { //when the block have 4 objects touching the collision... if (collision.gameObject == 4) renderer.enabled = true; //the block will be visible or unvisible (rendered mesh or unrendered mesh) else (collision.gameObject < 4) renderer.enabled = false; }

Viewing all articles
Browse latest Browse all 99

Trending Articles



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