---
title: GetChunkComponentDataPtrRO(Entity, ComponentType)
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/unity/entities/globalentitymanager/getchunkcomponentdataptrro
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/entities/globalentitymanager/getchunkcomponentdataptrro.md
last_updated: 2026-11-10
generated_at: 2026-11-13T14:49:26.239Z
locale: en-us
---

# GetChunkComponentDataPtrRO(Entity, ComponentType)

> Gets a read-only pointer to a chunk component of the chunk that holds an entity.

## Definition

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

```csharp
public static void* GetChunkComponentDataPtrRO(Entity entity, ComponentType type)
```

### Parameters

**** (\[Entity]\(/engine/7000.0/script-reference/unity/entities/entity)): The entity.**** (\[ComponentType]\(/engine/7000.0/script-reference/unity/entities/componenttype)): A chunk component type, such as [ComponentType.ChunkComponent](/engine/7000.0/script-reference/unity/entities/componenttype/chunkcomponent.md) returns, of an unmanaged [IComponentData](/engine/7000.0/script-reference/unity/entities/icomponentdata.md) type that isn't zero-sized.

### Returns

| Type                                                         | Description                                                      |
| ------------------------------------------------------------ | ---------------------------------------------------------------- |
| [void\*](https://learn.microsoft.com/dotnet/api/system.void) | A pointer to the component's data, which must not be written to. |

### Remarks

The value lives on the chunk's meta entity, and is shared by every entity in the chunk. The data is [TypeManager.TypeInfo.SizeInChunk](/engine/7000.0/script-reference/unity/entities/typemanager/typeinfo/sizeinchunk.md) bytes of the component's type. The pointer is invalid after the next structural change in the entity's world.
