EventFilter.HasEvent(int).md
February 25, 2024 ยท View on GitHub
Friflo.Engine.ECS
Friflo.Engine.ECS.EventFilter
EventFilter.HasEvent(int) Method
Returns true if a component or tag was added / removed to / from the entity with the passed entityId.
public bool HasEvent(int entityId);
Parameters
entityId System.Int32
Returns
Remarks
Therefore EventRecorder needs to be enabled and
the component / tag (add / remove) events of interest need to be added to the EventFilter.
Note: HasEvent(int) can be called from any thread.
No structural changes like adding / removing components/tags must not be executed at the same time by another thread.