EventRecorder.md

February 25, 2024 · View on GitHub

Friflo.Engine.ECS

Friflo.Engine.ECS

EventRecorder Class

Used to record events of structural changes like add/remove component/tag.
The recorder is required to filter these events using an EventFilter.

public sealed class EventRecorder

Inheritance System.Object 🡒 EventRecorder

Properties
AllEventsCountReturn the number of all recorded events.
Calling ClearEvents() does not affect the counter.
ComponentEventsThe list of all recorded component events.
EnabledRecord component / tag events if true.
It is required when using an EventFilter.
TagEventsThe list of all recorded tag events.
Methods
ClearEvents()Clear all ComponentEvents and TagEvents.
ToString()