Method WithAnyRW
WithAnyRW<T1>()
Add optional component types to the query with ReadWrite mode.
Declaration
[GenerateTestsForBurstCompatibility(GenericTypeArguments = new Type[] { typeof(BurstCompatibleComponentData) })]
public EntityQueryBuilder WithAnyRW<T1>()
Returns
Type | Description |
---|---|
Entity |
The builder object that invoked this method. |
Type Parameters
Name | Description |
---|---|
T1 | An optional ReadWrite component type |
Remarks
If a query uses the Filter
With
To match the resulting query, an Entity must have all of the query's optional component types.
WithAnyRW accepts up to two type arguments. You can add more component types by chaining calls together.
In the following example, an Entity must have either a Scale, NonUniformScale, and/or CompositeScale component in order to match the query:
To request read-only access, use With
WithAnyRW<T1, T2>()
Add optional component types to the query with ReadWrite mode.
Declaration
[GenerateTestsForBurstCompatibility(GenericTypeArguments = new Type[] { typeof(BurstCompatibleComponentData), typeof(BurstCompatibleComponentData) })]
public EntityQueryBuilder WithAnyRW<T1, T2>()
Returns
Type | Description |
---|---|
Entity |
The builder object that invoked this method. |
Type Parameters
Name | Description |
---|---|
T1 | An optional ReadWrite component type |
T2 | An optional ReadWrite component type |
Remarks
If a query uses the Filter
With
To match the resulting query, an Entity must have all of the query's optional component types.
WithAnyRW accepts up to two type arguments. You can add more component types by chaining calls together.
In the following example, an Entity must have either a Scale, NonUniformScale, and/or CompositeScale component in order to match the query:
To request read-only access, use With