Create a new Tag

Introduction

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.

Script view of Tag Helper

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.

Inspector view of Tag Helper

Instructions

Step1: Add a new tag in GamePlayTag

  • Open in script view.

  • Add a new tag with a unique number to the GamePlayTag enum.

Example: add chain5 as a new tag

Step2: Refresh GamePlayTagHelper

  • Back to Unity Project, click on .

  • In Inspector, right click on the helper and choose Refresh to update it.

Right click to Refresh
  • After refreshing, the new tag should be listed in Folders/Other.

Tag Helper after refreshing

Step3: Fix Helper hierarchy

  • 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.

Tag Helper after fixing the hierarchy

Last updated