An actor starts matching an ActorQuery: it gets the components of the filter, or it is added to the scene with them.
The query dispatches it on itself, immediately. Listen on the query, not on the scene.
Event name: AddActor from dacha/events.
AddActor
dacha/events
query.addEventListener(AddActor, ({ actor }) => { // set up the new actor}); Copy
query.addEventListener(AddActor, ({ actor }) => { // set up the new actor});
The actor that started matching the query.
Current event target
Function to stop the event propagation
Target of the event
Type of the event
An actor starts matching an ActorQuery: it gets the components of the filter, or it is added to the scene with them.
The query dispatches it on itself, immediately. Listen on the query, not on the scene.
Event name:
AddActorfromdacha/events.Example