If the event is currently being invoked
How many callback methods are subscribed to this event
Invoke all the methods that are subscribed to this event
optional arguments to pass to the event listeners. These will be passed before any custom arguments defined in the CallInfo instances. So if you have a CallInfo with arguments and you also pass arguments to invoke, the arguments passed to invoke will take precedence over the CallInfo arguments.
true if the event was successfully invoked, false if there are no listeners or if a circular invocation was detected
Remove all event listeners from this event. Use with caution! This will remove all listeners!
Remove an event listener from this event.
true if the event listener was found and removed, false otherwise
set an event target to try invoke the EventTarget dispatchEvent when this EventList is invoked
Staticfrom
EventList manages a list of callbacks that can be invoked together.
Used for Unity-style events that can be configured in the editor (Unity or Blender).
Serialization:
EventLists are serializable - callbacks configured in Unity/Blender will work at runtime.
Mark fields with
@serializable(EventList)for editor support.Usage patterns:
Screenshot of a Unity component with an EventList field
Screenshot of a Blender component with an EventList field
Example: Create and use an EventList
Example: Listen with arguments
See