Documentation

Unity Engine

Unity Engine

WithPresent

Specify all read-only component types that must be present, whether enabled or disabled.
Read time 1 minuteLast updated 4 days ago

Definition

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

WithPresent<T>()

Specify all read-only component types that must be present, whether enabled or disabled.
public QueryEnumerable<T1> WithPresent<TComponent1>()

Returns

Type

Description

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

WithPresent<T, U>()

Specify all read-only component types that must be present, whether enabled or disabled.
public QueryEnumerable<T1> WithPresent<TComponent1, TComponent2>()

Returns

Type

Description

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

WithPresent<T, U, V>()

Specify all read-only component types that must be present, whether enabled or disabled.
public QueryEnumerable<T1> WithPresent<TComponent1, TComponent2, TComponent3>()

Returns

Type

Description

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