---
title: HasBuffer<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/hasbuffer
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/component/hasbuffer.md
last_updated: 2026-12-01
generated_at: 2026-12-01T07:02:49.610Z
locale: en-us
---

# HasBuffer<T>()

> Checks whether the GameObject this Component is attached to has a Buffer of T elements, an IBufferElementData.

## 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 bool HasBuffer<T>() where T : unmanaged, IBufferElementData
```

### Returns

| Type                                                          | Description                                       |
| ------------------------------------------------------------- | ------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the GameObject exists and has the Buffer. |

### Remarks

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

Doesn't wait for any jobs.
