Is there a way to write in scripts to write the name of a tag?

For example something like string = GameObject.tag.name

The name of a tag?

The ‘tag’ property itself returns the value of the tag. Which I would assume is its “name”.

Unless you mean something else when you say “name”?

1 Like