Documentation

Unity Engine


Unity Engine


WithDisabled

Specify all read-only component types that must be present AND disabled.
Read time 1 minuteLast updated a day ago

Definition

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

WithDisabled<T>()

Specify all read-only component types that must be present AND disabled.
public QueryEnumerable<T1, T2, T3, T4> WithDisabled<TComponent1>() where TComponent1 : unmanaged, IEnableableComponent

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.

WithDisabled<T, U>()

Specify all read-only component types that must be present AND disabled.
public QueryEnumerable<T1, T2, T3, T4> WithDisabled<TComponent1, TComponent2>() where TComponent1 : unmanaged, IEnableableComponent where TComponent2 : unmanaged, IEnableableComponent

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.

WithDisabled<T, U, V>()

Specify all read-only component types that must be present AND disabled.
public QueryEnumerable<T1, T2, T3, T4> WithDisabled<TComponent1, TComponent2, TComponent3>() where TComponent1 : unmanaged, IEnableableComponent where TComponent2 : unmanaged, IEnableableComponent where TComponent3 : unmanaged, IEnableableComponent

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.