WithPresent
Specify all read-only component types that must be present, whether enabled or disabled.
Read time 1 minuteLast updated 2 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, T2> WithPresent<TComponent1>()
Returns
Type | Description |
|---|---|
| QueryEnumerable<T, U> | 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, T2> WithPresent<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. |
WithPresent<T, U, V>()
Specify all read-only component types that must be present, whether enabled or disabled.
public QueryEnumerable<T1, T2> WithPresent<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. |