HasBuffer<T>(Entity)
Checks whether an entity has a dynamic buffer of a specific IBufferElementData type.
Read time 1 minuteLast updated 2 days ago
Definition
- Type: Method
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public bool HasBuffer<T>(Entity entity) where T : struct, IBufferElementData
Parameters
The Entity object.
Returns
Type | Description |
|---|---|
| bool | True, if the specified entity has a dynamic buffer of IBufferElementData type. |
Remarks
Always returns false for an entity that has been destroyed.