EntityQueryBuilderExtension.md

March 19, 2022 · View on GitHub

DefaultEcs

DefaultEcs

EntityQueryBuilderExtension Class

Provides set of static methods to create more easily rules on a EntityQueryBuilder instance.

public static class EntityQueryBuilderExtension

Inheritance System.Object 🡒 EntityQueryBuilderExtension

Methods
WhenAdded(this EntityQueryBuilder, Type[])Makes a rule to obsverve Entity when all component of the given types are added.
WhenAddedEither(this EntityQueryBuilder, Type[])Makes a rule to observe Entity when one component of the given types is added.
WhenChanged(this EntityQueryBuilder, Type[])Makes a rule to obsverve Entity when all component of the given types are changed.
WhenChangedEither(this EntityQueryBuilder, Type[])Makes a rule to observe Entity when one component of the given types is changed.
WhenRemoved(this EntityQueryBuilder, Type[])Makes a rule to obsverve Entity when all component of the given types are removed.
WhenRemovedEither(this EntityQueryBuilder, Type[])Makes a rule to observe Entity when one component of the given types is removed.
With(this EntityQueryBuilder, Type[])Makes a rule to obsverve Entity with all component of the given types.
WithEither(this EntityQueryBuilder, Type[])Makes a rule to obsverve Entity with at least one component of the given types.
Without(this EntityQueryBuilder, Type[])Makes a rule to ignore Entity with at least one component of the given types.
WithoutEither(this EntityQueryBuilder, Type[])Makes a rule to obsverve Entity without at least one component of the given types.