Quantcast
Viewing latest article 1
Browse Latest Browse All 95

Array elements change Gameobject.tag

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 latest article 1
Browse Latest Browse All 95

Trending Articles



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