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
  • Goal
  • Find your Animation
  • Animation Event
  • Add New Animation Event
Edit on GitHub
  1. Guide
  2. Step-by-Step Guide

Step 7: Trigger Animation Event

PreviousStep 6: Animation MontageNextPractice 1.2: Back to Grant Tag Mod

Last updated 6 months ago

Goal

  • Understand how Trigger Animation Event is used for controlling State Modifiers


Find your Animation

  • In Unity Editor, find Window/Animation/Animation and click to open the Animation panel.

  • Click on the Penguin game object and you can see the following stuff:

If you don't select the game object with Animator, the animations shown in the panel would not be writable and you cannot click the play button to preview it.

Clicking onto 1H_Melee_Attack_Slice_Diagonal, which is the animation clip for Attack1, you should see the following animation:

Animation Event

There are 4 labels on top of the properties. You can click on them, and the inspector will look like:

As the name suggests, these are the Animation Events that are used in Timing Attributes of State Modifiers. The Int in the inspector is for the Begin Index and End Index. We HIGHLY RECOMMEND ordering the events in ascending order, so it will not cause any potential problem.

Add New Animation Event

To add an event, click the circled button:

In the inspector view of the animation event, you need to select TriggerAnimatinoEvent(int):

This method is provided by Model Handler attached to the same object as Animator.

If you added your own Animation Event, remember to set an Int and drag it to the correct order.