---
title: IsComponentEnabled<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/gameobject/iscomponentenabled
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/gameobject/iscomponentenabled.md
last_updated: 2026-12-01
generated_at: 2026-12-01T07:10:43.095Z
locale: en-us
---

# IsComponentEnabled<T>()

> Checks whether the enableable data component T, an IEnableableComponent, on this GameObject is enabled.

## 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 IsComponentEnabled<T>() where T : unmanaged, IEnableableComponent
```

### Returns

| Type                                                          | Description                            |
| ------------------------------------------------------------- | -------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the data component is enabled. |

### Remarks

Throws an `ArgumentException` if the GameObject has been destroyed or doesn't have the data component.

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