# GetBufferLookup<T>(bool)

> Gets a BufferLookup\<T\> object that can access a DynamicBuffer<T>.

## Definition

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

```csharp
public static BufferLookup<T> GetBufferLookup<T>(bool isReadOnly = false) where T : unmanaged, IBufferElementData
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether the buffer data is only read or is also written. Access data in a read-only fashion whenever possible.

### Returns

| Type                                                                                | Description                                                                                                                          |
| ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
| [BufferLookup\<T>](/engine/7000.0/script-reference/unity/entities/bufferlookup1.md) | An array-like object that provides access to buffers, indexed by [Entity](/engine/7000.0/script-reference/unity/entities/entity.md). |

### Remarks

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

Not working in IJobEntity, and Utility methods

Additional Resources: [ComponentLookup\<T>](/engine/7000.0/script-reference/unity/entities/componentlookup1.md)
