I can’t get the tag of the Game Object, to change to “hit” and I can’t figure out why. The if statement works perfectly with changing the color of the objects upon collision. But I get the error “Tag: “hit” is not defined”. Would I first have to define the tag as “Untagged” and then replace it with it “hit”? I’m confused by this
You have to create a new tag called “hit”. You cannot just add any tag you want. Your list of tags must include a “hit” entry.
You can go to Edit -> Project Settings... -> Tags and Layers
and add “hit” to the tags list
Awesome! Thank you so much!
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.