Create a new Tag
Last updated
Last updated
All tags are stored inside a script named , you may edit it on your own need. It is a huge Enum. Every Tag is represented by a name and a unique number.
The number of each tag should be unique to avoid unexpected behaviors.
Tags are toggled on the Action State component.
For a non-script view, you can find a scriptable object named in the same folder. Click on the helper and you can find all the tags listed in the Inspector.
Open in script view.
Add a new tag with a unique number to the GamePlayTag enum.
There is no special constrain to the number except uniqueness.
However, in order to better manage the folder hierarchy, we suggest that numbers of the same group of tags should be close to each other.
Back to Unity Project, click on .
In Inspector, right click on the helper and choose Refresh to update it.
After refreshing, the new tag should be listed in Folders/Other.
Right click on your new tag in Other and choose Copy.
Go to your target folder and click + to add a new enum here.
Right click this tag and choose Paste to move your tag to the correct hierarchy.
Click - to remove your tag from Other.