EntityFilter
Defined in: EntityFilter.ts:5
Filter criteria for entity queries. All fields are AND’d together.
Properties
Section titled “Properties”filter?
Section titled “filter?”
optionalfilter?: (entity) =>boolean
Defined in: EntityFilter.ts:14
Custom predicate — called after other checks pass.
Parameters
Section titled “Parameters”entity
Section titled “entity”Returns
Section titled “Returns”boolean
optionalname?:string
Defined in: EntityFilter.ts:12
Match entities with this exact name.
optionaltags?:string[]
Defined in: EntityFilter.ts:10
Match entities that have ALL of these tags.
trait?
Section titled “trait?”
optionaltrait?:TraitToken<any>
Defined in: EntityFilter.ts:8
Match entities whose class implements this trait.