---
title: isDataComponent
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/isdatacomponent
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/component/isdatacomponent.md
last_updated: 2026-11-24
generated_at: 2026-11-24T17:38:43.976Z
locale: en-us
---

# isDataComponent

> Whether this Component refers to a data component instead of a native component.

## Definition

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

```csharp
public bool isDataComponent { get; }
```

### Remarks

Passing a data component to a method that does not support it, throws a `NotSupportedException`. A data component represented by a Component can only be used from the main thread. On other threads it behaves as if it no longer exists: comparing it to `null` returns `true`, and [Component.GetComponentData](/engine/7000.0/script-reference/unityengine/component/getcomponentdata.md) and [Component.SetComponentData](/engine/7000.0/script-reference/unityengine/component/setcomponentdata.md) throw a `MissingReferenceException`, the same exception thrown when the data component has been removed. This property still returns `true` on any thread. The data component is not affected, so back on the main thread it is no longer equal to `null` and can be used again.
