Method WithAnyChunkComponentRW
WithAnyChunkComponentRW<T>()
Add an optional chunk component type to the query.
Declaration
[GenerateTestsForBurstCompatibility(GenericTypeArguments = new Type[] { typeof(BurstCompatibleComponentData) })]
public EntityQueryBuilder WithAnyChunkComponentRW<T>()
Returns
Type | Description |
---|---|
Entity |
The builder object that invoked this method. |
Type Parameters
Name | Description |
---|---|
T | Component type to use as an optional, read-write chunk component |
Remarks
To match the resulting query, an Entity must have at least one of the query's optional component types,
specified using either With
Compare this to With
To add additional optional Chunk Components, call this method multiple times.
To add component types that are not known at compile time, use With
The query will request read-only access to the referenced component(s). To request read/write access, use Unity.