EffectAddAfterEventSignal Class

Manages callbacks that are connected to when an effect is added to an entity.

Methods

subscribe

subscribe(callback: (arg: EffectAddAfterEvent) => void, options?: EntityEventOptions): (arg: EffectAddAfterEvent) => void

Adds a callback that will be called when an effect is added to an entity.

Parameters

Returns (arg: EffectAddAfterEvent) => void

Important

This function can't be called in read-only mode.

unsubscribe

unsubscribe(callback: (arg: EffectAddAfterEvent) => void): void

Removes a callback from being called when an effect is added to an entity.

Parameters

Important

This function can't be called in read-only mode.

Warning

This function can throw errors.