# GetBuffer<T>(Entity)

> Gets the dynamic buffer of an entity.

## Definition

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

```csharp
public static DynamicBuffer<T> GetBuffer<T>(Entity entity) where T : unmanaged, IBufferElementData
```

### Parameters

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

### Returns

| Type                                                                                  | Description                                                 |
| ------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
| [DynamicBuffer\<T>](/engine/7000.0/script-reference/unity/entities/dynamicbuffer1.md) | The DynamicBuffer object for accessing the buffer contents. |

### Remarks

This method gets replaced with component access methods through a cached [BufferLookup\<T>](/engine/7000.0/script-reference/unity/entities/bufferlookup1.md).

Not working in IJobEntity, and Utility methods
