poll_events
Retrieve new editor events (e.g., actor spawns, deletions, asset additions) that occurred since the last poll by providing a sequence cursor. Handles buffer overflow detection with a 'dropped' flag.
Instructions
Tier 2 entrypoint: drain editor events fired since the caller's last poll. Today UE pushes events from a starter set of delegates (actor_spawned, actor_deleted, asset_added) into a 1000-entry ring buffer (FUCMCPEventBus); this handler returns the slice with seq >= since_seq (inclusive cursor), capped at max_count. First call: pass since_seq=-1 (default) to discover the current next_seq, then poll with the previous response's next_seq for steady-state delta consumption. Response includes 'dropped' flag if the caller's since_seq fell below the oldest buffered event (i.e. buffer overflowed between polls).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since_seq | No | Return events with seq >= since_seq (inclusive cursor). Default -1 (from oldest buffered). | |
| max_count | No | Cap returned events. Default 100; hard max 1000 (= ring buffer size). | |
| event_filter | No | Substring-match filters on event type names (e.g. ['actor_spawned', 'asset_']). Multiple entries are OR-combined. Empty / omitted means no filter. |