Penguin Action Toolkit
  • 🐧Welcome
  • Guide
    • Step-by-Step Guide
      • Step 1: Install PAT
      • Step 2: Tutorial Scene
      • Step 3: Character - Action States
      • Practice 0: Add an Input Tag
      • Step 4: Character - Tags
      • Practice 1: Combo
      • Step 5: State Modifiers
      • Practice 1.1 & Ex: Grant Tag Mod
      • Step 6: Animation Montage
      • Step 7: Trigger Animation Event
      • Practice 1.2: Back to Grant Tag Mod
      • Step 8: Animator
      • Step 9: Attributes
      • Practice 2: Cost HP
      • Step 10: Effects
        • Step 10.1: Hitbox & Hurtbox
  • Definition & Inspector Detail
    • Actions
      • Action State
      • State Modifier
      • Move Set
    • Tag
    • Attribute
    • Effect
    • Player
    • Input
    • Locomotion
  • Tutorial
    • Installation
    • Contents of the Assets
    • Character
      • Create a Character
    • Set Up Player
    • Create a new Tag
    • Create a new Modifier
    • Use Attributes
    • Effect
      • Create an Effect
      • Apply Effects
    • Animation
      • Animatior Controller
    • PAT Manager
  • Beneath the Feathers
    • The Other One
    • Help on the Way
    • Victim or the Crime
    • Unbroken Chain
  • PAT Game Jam
    • Save the Penguin
    • Schedule
    • Terms & Conditions
  • FAQ
    • Change to Your Own Model
Powered by GitBook
On this page
  • Introduction
  • Instructions
  • Step1: Add a new tag in GamePlayTag
  • Step2: Refresh GamePlayTagHelper
  • Step3: Fix Helper hierarchy
Edit on GitHub
  1. Tutorial

Create a new Tag

PreviousSet Up PlayerNextCreate a new Modifier

Last updated 6 months ago

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.

The number of each tag should be unique to avoid unexpected behaviors.

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.

Instructions

Step1: Add a new tag in GamePlayTag

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

Step2: Refresh GamePlayTagHelper

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

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.

Right click to Refresh
Inspector view of Tag Helper
Example: add chain5 as a new tag
Tag Helper after refreshing
Tag Helper after fixing the hierarchy