Documentation

Unity Engine


Unity Engine


WithAll

Specify all read-only component types that must be present AND enabled.
Read time 1 minuteLast updated 2 days ago

Definition

  • Type: Method
  • Namespace: Unity.Entities
  • Assembly: UnityEngine.EntitiesModule

WithAll<T>()

Specify all read-only component types that must be present AND enabled.
public QueryEnumerable<T1, T2> WithAll<TComponent1>()

Returns

Type

Description

QueryEnumerable<T, U>QueryEnumerable, which allows enumerating over all RefRO, RefRW, EnabledRefRO and EnabledRefRW components that match the constructed Query.

WithAll<T, U>()

Specify all read-only component types that must be present AND enabled.
public QueryEnumerable<T1, T2> WithAll<TComponent1, TComponent2>()

Returns

Type

Description

QueryEnumerable<T, U>QueryEnumerable, which allows enumerating over all RefRO, RefRW, EnabledRefRO and EnabledRefRW components that match the constructed Query.

WithAll<T, U, V>()

Specify all read-only component types that must be present AND enabled.
public QueryEnumerable<T1, T2> WithAll<TComponent1, TComponent2, TComponent3>()

Returns

Type

Description

QueryEnumerable<T, U>QueryEnumerable, which allows enumerating over all RefRO, RefRW, EnabledRefRO and EnabledRefRW components that match the constructed Query.