Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 1.32 KB

EventFilter.HasEvent(int).md

File metadata and controls

23 lines (16 loc) · 1.32 KB

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

System.Boolean

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.