EntityQueryBuilder.With_T_(ComponentPredicate_T_).md
March 19, 2022 ยท View on GitHub
DefaultEcs
DefaultEcs.EntityQueryBuilder
EntityQueryBuilder.With(ComponentPredicate) Method
Makes a rule to observe Entity with a component of type T validating the given ComponentPredicate<T>(T).
public DefaultEcs.EntityQueryBuilder With<T>(DefaultEcs.ComponentPredicate<T> predicate);
Type parameters
T
The type of component.
Parameters
predicate DefaultEcs.ComponentPredicate<T>
The ComponentPredicate<T>(T) which needs to be validated.
Returns
EntityQueryBuilder
The current EntityQueryBuilder.