# GetEnabledMask

> Provides a EnabledMask to the component enabled bits in this chunk.

## Definition

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

## GetEnabledMask\<T>(ComponentTypeHandle\<T>)

Provides a [EnabledMask](/engine/7000.0/script-reference/unity/entities/enabledmask.md) to the component enabled bits in this chunk.

```csharp
public readonly EnabledMask GetEnabledMask<T>(ref ComponentTypeHandle<T> typeHandle) where T : unmanaged, IComponentData, IEnableableComponent
```

### Parameters

**** (\[ComponentTypeHandle\<T>]\(/engine/7000.0/script-reference/unity/entities/componenttypehandle1)): Type handle for the component type `T`.

### Returns

| Type                                                                         | Description                                                                                                               |
| ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| [EnabledMask](/engine/7000.0/script-reference/unity/entities/enabledmask.md) | An [EnabledMask](/engine/7000.0/script-reference/unity/entities/enabledmask.md) instance for component `T` in this chunk. |

## GetEnabledMask\<T>(BufferTypeHandle\<T>)

Provides a [EnabledMask](/engine/7000.0/script-reference/unity/entities/enabledmask.md) to the component enabled bits in this chunk.

```csharp
public readonly EnabledMask GetEnabledMask<T>(ref BufferTypeHandle<T> typeHandle) where T : unmanaged, IBufferElementData, IEnableableComponent
```

### Parameters

**** (\[BufferTypeHandle\<T>]\(/engine/7000.0/script-reference/unity/entities/buffertypehandle1)): Type handle for the component type `T`.

### Returns

| Type                                                                         | Description                                                                                                               |
| ---------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| [EnabledMask](/engine/7000.0/script-reference/unity/entities/enabledmask.md) | An [EnabledMask](/engine/7000.0/script-reference/unity/entities/enabledmask.md) instance for component `T` in this chunk. |

## GetEnabledMask(DynamicComponentTypeHandle)

Provides a [EnabledMask](/engine/7000.0/script-reference/unity/entities/enabledmask.md) to the component enabled bits in this chunk.

```csharp
public readonly EnabledMask GetEnabledMask(ref DynamicComponentTypeHandle typeHandle)
```

### Parameters

**** (\[DynamicComponentTypeHandle]\(/engine/7000.0/script-reference/unity/entities/dynamiccomponenttypehandle)): Type handle for the dynamic component/>.

### Returns

| Type                                                                         | Description                                                                                                           |
| ---------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| [EnabledMask](/engine/7000.0/script-reference/unity/entities/enabledmask.md) | An [EnabledMask](/engine/7000.0/script-reference/unity/entities/enabledmask.md) instance for component in this chunk. |
