CustomEvent (Class)

Event typically fired by the Fire Custom Event action.

Properties

Property Description Type
source The origin of the event GameObject
kind A literal descriptor / identifier useful for filtering string
data Data attached to the event Variable

Methods

public void AddListener(IEventListener listener)

Subscribes the specified listener to next events of this type.

public void RemoveListener(IEventListener listener)

Removes the specified listener from the subscription list for events of this type.

### Remarks

Events of this type are managed by the On Custom Event program.