Quantcast
Channel: Questions in topic: "gameobject.tag"
Viewing all articles
Browse latest Browse all 95

Array elements change Gameobject.tag

$
0
0
Hi I have an array of materials which I can assign in the inspector. I was wondering is there a way to have each element of the built in array change the tag of the gameobject its attached to. This will not compile but its just an example of what I want to achieve. colourChanges [1] = gameObject.tag == "blueEnemy"; I just want each element in the array to change the tag of the gameobject. Is there a way to do this? Any help is greatly appreciated. Thank you for helping me with my uni studies.

Viewing all articles
Browse latest Browse all 95

Trending Articles



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