Method WithAspect
WithAspect<TAspect>()
Add component type requirement for a given aspect.
Declaration
[GenerateTestsForBurstCompatibility(GenericTypeArguments = new Type[]{typeof(BurstCompatibleAspect)})]
public EntityQueryBuilder WithAspect<TAspect>()
where TAspect : struct, IAspect, IAspectCreate<TAspect>
Returns
Type | Description |
---|---|
EntityQueryBuilder | The builder object that invoked this method. |
Type Parameters
Name | Description |
---|---|
TAspect | The aspect to add to the query |