CustomEffect
Abstract Scriptable Object
Description
Custom Effects are a way to add additional functionality to each StatusEffectData. Truthfully anything can be done with them as they are just an inheritable abstract class with a coroutine, allowing for unlimited functionality. It is highly recommended to take a look at the samples for an idea of how to use them.
UniTask Support
Note that if you have UniTask in your project then the CustomEffect will use UniTasks over Coroutines. This is also included in the samples, but note that the only real difference is that there is no EffectEnd abstract method because one can just wait until cancellation is requested on the token.
Abstract Methods
Effect | A Coroutine that is started when the StatusEffect begins. |
EffectEnd | A method that is invoked when the StatusEffect is stopped. |