Documentation

Unity Engine


Unity Engine


WithAny

Specify optional read-only component types (which must be enabled).
Read time 1 minuteLast updated a day ago

Definition

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

WithAny<T>()

Specify optional read-only component types (which must be enabled).
public QueryEnumerable<T1, T2, T3, T4> WithAny<TComponent1>()

Returns

Type

Description

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

WithAny<T, U>()

Specify optional read-only component types (which must be enabled).
public QueryEnumerable<T1, T2, T3, T4> WithAny<TComponent1, TComponent2>()

Returns

Type

Description

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

WithAny<T, U, V>()

Specify optional read-only component types (which must be enabled).
public QueryEnumerable<T1, T2, T3, T4> WithAny<TComponent1, TComponent2, TComponent3>()

Returns

Type

Description

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