# GetComponentDataFromEntity<T>(bool)

> Obsolete. Use SystemBase.GetComponentLookup instead.

## Definition

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

> **Warning:**
>
> **Removed.** This method has been renamed to GetComponentLookup. (RemovedAFter Entities 1.0)

```csharp
public ComponentLookup<T> GetComponentDataFromEntity<T>(bool isReadOnly = false) where T : unmanaged, IComponentData
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether the data is only read, not written. Access data as read-only whenever possible.

### Returns

| Type                                                                                      | Description                   |
| ----------------------------------------------------------------------------------------- | ----------------------------- |
| [ComponentLookup\<T>](/engine/7000.0/script-reference/unity/entities/componentlookup1.md) | All component data of type T. |
