---
title: GetBufferRO<T>()
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/component/getbufferro
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/component/getbufferro.md
last_updated: 2026-12-01
generated_at: 2026-12-01T07:02:52.439Z
locale: en-us
---

# GetBufferRO<T>()

> Gets the Buffer of T elements, an IBufferElementData, on the GameObject this Component is attached to for reading.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/7000.0/script-reference/unityengine.md)
* **Assembly:** [UnityEngine.CoreModule](/engine/7000.0/script-reference/modules/unityengine-coremodule.md)

```csharp
public DynamicBuffer<T> GetBufferRO<T>() where T : unmanaged, IBufferElementData
```

### Returns

| Type                                                                                  | Description |
| ------------------------------------------------------------------------------------- | ----------- |
| [DynamicBuffer\<T>](/engine/7000.0/script-reference/unity/entities/dynamicbuffer1.md) | The Buffer. |

### Remarks

Same as [GameObject.GetBufferRO](/engine/7000.0/script-reference/unityengine/gameobject/getbufferro.md) on [Component.gameObject](/engine/7000.0/script-reference/unityengine/component/gameobject.md).

Writing to the Buffer throws when safety checks are enabled. Throws an `ArgumentException` if the GameObject has been destroyed or doesn't have the Buffer.

Waits for the jobs that write `T` to complete. To avoid the wait, read `T` in a job through a `Unity.Entities.BufferLookup`. The job then runs after the jobs that write `T`, instead of the main thread waiting for them.
