Quantcast
Channel: Latest Questions by Crispinator
Viewing all articles
Browse latest Browse all 30

Destroying Multiple Objects with Tags

$
0
0
I am trying to destroy a grid when a button is pressed. Each grid square is a child of one other one. This script is attached to the button. #pragma strict function OnMouseEnter () { renderer.material.color = Color.red; } function OnMouseExit () { renderer.material.color = Color.white; } function OnMouseUp () { var grid = GameObject.FindWithTag("Grid"); renderer.enabled = false; }

Viewing all articles
Browse latest Browse all 30

Trending Articles



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