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:
Button click handlers
Animation events
Custom component callbacks
Scene loading events
Screenshot of a Unity component with an EventList field
Screenshot of a Blender component with an EventList field
Example: Create and use an EventList
// Define in your component @serializable(EventList) onClick: EventList = newEventList();
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