# ChunkComponentExclude

> Returns a ComponentType that is a chunk component with ComponentType.AccessMode.Exclude based on the type.

## Definition

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

## ChunkComponentExclude\<T>()

Returns a [ComponentType](/engine/7000.0/script-reference/unity/entities/componenttype.md) that is a chunk component with [ComponentType.AccessMode.Exclude](/engine/7000.0/script-reference/unity/entities/componenttype/accessmode/exclude.md) based on the type.

```csharp
public static ComponentType ChunkComponentExclude<T>()
```

### Returns

| Type                                                                             | Description              |
| -------------------------------------------------------------------------------- | ------------------------ |
| [ComponentType](/engine/7000.0/script-reference/unity/entities/componenttype.md) | The chunk component type |

## ChunkComponentExclude(Type)

Returns a [ComponentType](/engine/7000.0/script-reference/unity/entities/componenttype.md) that is a chunk component with [ComponentType.AccessMode.Exclude](/engine/7000.0/script-reference/unity/entities/componenttype/accessmode/exclude.md) based on the type.

```csharp
[ExcludeFromBurstCompatTesting("Takes a managed Type")]
public static ComponentType ChunkComponentExclude(Type type)
```

### Parameters

**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): The type

### Returns

| Type                                                                             | Description              |
| -------------------------------------------------------------------------------- | ------------------------ |
| [ComponentType](/engine/7000.0/script-reference/unity/entities/componenttype.md) | The chunk component type |
