Quantcast
Viewing all articles
Browse latest Browse all 30

Changing tags of an Object and its Child

I want the sword object and all of its children to change tags, but for some reason it won't work. It's probably some obvious problem and I just don't see it. function OnMouseUp() { var sword = GameObject.FindGameObjectsWithTag("Unequiped"); sword.tag = "Equiped"; }

Viewing all articles
Browse latest Browse all 30

Trending Articles