HasComponentData<T>()
Checks whether this GameObject has the ComponentData T, an IComponentData.
Read time 1 minuteLast updated 6 hours ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public bool HasComponentData<T>() where T : unmanaged, IComponentData
Returns
Type | Description |
|---|---|
| bool | True if the GameObject exists and has the ComponentData. |
Remarks
Doesn't wait for any jobs.