Documentation

Unity Engine


Unity Engine


QueryEnumerableWithEntity<T1, T2, T3, T4, T5, T6, T7>

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 a day ago

Definition

public readonly struct QueryEnumerableWithEntity<T1, T2, T3, T4, T5, T6, T7> : IEnumerable<(T1, T2, T3, T4, T5, T6, T7, 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

Item1A component value for the current entity.
Item2A component value for the current entity.
Item3A component value for the current entity.
Item4A component value for the current entity.
Item5A component value for the current entity.
Item6A component value for the current entity.
Item7A component value for the current entity.
Item8The current entity.

Constructors

Methods

Method

Description

DeconstructClean up an existing object.
GetEnumeratorReturns an enumerator over the entities in this query.
WithAllSpecify all read-only component types that must be present.
WithAnySpecify optional read-only component types.
WithChangeFilterOnly select components in chunks in which the specified component might have changed since the last time the system updated.
WithNoneSpecify component types that must be absent.
WithOptionsSpecify your own
EntityQueryOptions
.
WithSharedComponentFilterOnly select chunks that have a specified value for a shared component.