QueryEnumerableWithEntity<T1, T2, T3, T4, T5>
An enumeration interface for the entities that match an EntityQuery. This variant includes access the the entity and its component values.
Read time 1 minuteLast updated 20 hours ago
Definition
- Type: Struct
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
- Implements: IEnumerable<ValueTuple<T, T, T, T, T, Entity>>, IEnumerable
public readonly struct QueryEnumerableWithEntity<T1, T2, T3, T4, T5> : IEnumerable<(T1, T2, T3, T4, T5, Entity)>, IEnumerable
Remarks
This feature is primarily intended as a backend implementation for SystemAPI.Query. Application code should prefer to use that interface rather than using this type directly.
Fields
Value | Description |
|---|---|
| Item1 | A component value for the current entity. |
| Item2 | A component value for the current entity. |
| Item3 | A component value for the current entity. |
| Item4 | A component value for the current entity. |
| Item5 | A component value for the current entity. |
| Item6 | The current entity. |
Constructors
Constructor | Description |
|---|---|
| QueryEnumerableWithEntity`5(`0,`1,`2,`3,`4,Unity.Entities.Entity) | Construct a new object. |
Methods
Method | Description |
|---|---|
| Deconstruct | Clean up an existing object. |
| GetEnumerator | Returns an enumerator over the entities in this query. |
| WithAll | Specify all read-only component types that must be present. |
| WithAny | Specify optional read-only component types. |
| WithChangeFilter | Only select components in chunks in which the specified component might have changed since the last time the system updated. |
| WithNone | Specify component types that must be absent. |
| WithOptions | Specify your own |
| WithSharedComponentFilter | Only select chunks that have a specified value for a shared component. |