# HasBuffer<T>(Entity)

> Checks whether an entity has a dynamic buffer of a specific IBufferElementData type.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

```csharp
public bool HasBuffer<T>(Entity entity) where T : struct, IBufferElementData
```

### Parameters

**** (\[Entity]\(/engine/7000.0/script-reference/unity/entities/entity)): The Entity object.

### Returns

| Type                                                          | Description                                                                    |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True, if the specified entity has a dynamic buffer of IBufferElementData type. |

### Remarks

Always returns false for an entity that has been destroyed.
