HasBuffer<T>()
Checks whether the GameObject this Component is attached to has a Buffer of T elements, an IBufferElementData.
Read time 1 minuteLast updated 6 hours ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public bool HasBuffer<T>() where T : unmanaged, IBufferElementData
Returns
Type | Description |
|---|---|
| bool | True if the GameObject exists and has the Buffer. |
Remarks
Same as GameObject.HasBuffer on Component.gameObject.
Doesn't wait for any jobs.