HasComponentData<T>()
Checks whether the GameObject this Component is attached to 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
Same as GameObject.HasComponentData on Component.gameObject.
Doesn't wait for any jobs.