CustomAbilityContextBhv

This is an empty, abstract class, a so-called "marker class".

You can extend CustomAbilityContextBhv to add your own logic to an ability. Steps:

  1. Extend CustomAbilityContextBhv

  2. Create a prefab that has your extension of CustomAbilityContextBhv.

  3. Drop this prefab into the Custom Execution Context field of the Ability.

An instance of this prefab will be created everytime the ability is executed and the user is responsible for destroying it when it is not needed any more.

The Chain Lightning Demo demonstrates such a custom context.