Table of Contents

Animation Marker

Markers are the system used to start/stop effects to trigger during an animation in an arena fight. It is a prefab and a resources. All markers must be in the folder Resources/Prefabs/Marker.

Markers

There are two kinds of markers (for now), particle system and UI:

How to play an effect in an animation

  1. You must first create a new marker containg the effect you wish to play during the fight. You can copy the markers MarkerSlow or MarkerFire if you need example. Make it a prefab. Store it in Resources/Prefabs/Marker
  2. You must set the marker in an AttackDescription or MagicDescription.
  3. In the pawn, add an AnimationEventLibrary.
  4. In the pawn animation, add a animation event. You have two possible methods you can call:
    • StartMarkerFromActionDescription : this will start the effect attached to the action the pawn is running.
    • StopMarkerFromActionDescription : this will stop the effect.