Documentation

Unity Engine


Unity Engine


WithAny

Specify optional read-only component types.
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.
public QueryEnumerableWithEntity<T1, T2, T3, T4, T5> WithAny<TComponent1>()

Returns

Type

Description

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

WithAny<T, U>()

Specify optional read-only component types.
public QueryEnumerableWithEntity<T1, T2, T3, T4, T5> WithAny<TComponent1, TComponent2>()

Returns

Type

Description

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

WithAny<T, U, V>()

Specify optional read-only component types.
public QueryEnumerableWithEntity<T1, T2, T3, T4, T5> WithAny<TComponent1, TComponent2, TComponent3>()

Returns

Type

Description

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