can i change a item tag in the unity using JS?

can i change a item tag in the unity using JS?
i need change my character tag on unity, but i need change that when i playng the game.
i have a sword with tag “sword” and his damage is 5
if i take a other sword, the damage goes to 10, and the tag
would be “sword1”

yeah, you can, the tag property is on the GameObject and is read-write:

1 Like

ok thanks

You can, but its generally not the best way to code this sort of thing. Why not simply expose a float that you can adjust the damage with?

Tags are meant to provide general groupings. Like all weapons in a game, or all enemies. If you start using tag checking to separate out individual entities you will quickly run out of tags.