# EnabledMask

> Safe pointer to a bit buffer first bit, and a pointer to the chunk's component disabled count, which is updated when the bits are written to.

## Definition

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

```csharp
public struct EnabledMask
```

## Remarks

Do not store outside of stack

## Properties

| Property                                                                             | Description                                              |
| ------------------------------------------------------------------------------------ | -------------------------------------------------------- |
| [EnableBit](/engine/7000.0/script-reference/unity/entities/enabledmask/enablebit.md) | First bit of the EnabledMask buffer                      |
| [this\[\]](/engine/7000.0/script-reference/unity/entities/enabledmask/item.md)       | Access the bit at bit-memory-address (first bit) + index |

## Methods

| Method                                                                                                           | Description                                                                                                                                                                                            |
| ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [GetBit](/engine/7000.0/script-reference/unity/entities/enabledmask/getbit.md)                                   | Retrieve the value of the bit from bit-memory-address (first bit) + index                                                                                                                              |
| [GetEnabledRefRO](/engine/7000.0/script-reference/unity/entities/enabledmask/getenabledrefro.md)                 | Get a [EnabledRefRO\<T>](/engine/7000.0/script-reference/unity/entities/enabledrefro1.md) reference to the enabled bit at index.                                                                       |
| [GetEnabledRefRW](/engine/7000.0/script-reference/unity/entities/enabledmask/getenabledrefrw.md)                 | Get a [EnabledRefRW\<T>](/engine/7000.0/script-reference/unity/entities/enabledrefrw1.md) reference to the enabled bit at index.                                                                       |
| [GetOptionalEnabledRefRO](/engine/7000.0/script-reference/unity/entities/enabledmask/getoptionalenabledrefro.md) | Get a [EnabledRefRO\<T>](/engine/7000.0/script-reference/unity/entities/enabledrefro1.md) reference to the enabled bit at index.                                                                       |
| [GetOptionalEnabledRefRW](/engine/7000.0/script-reference/unity/entities/enabledmask/getoptionalenabledrefrw.md) | Get a [EnabledRefRW\<T>](/engine/7000.0/script-reference/unity/entities/enabledrefrw1.md) reference to the enabled bit at index. Returns EnabledRefRORW\\\<T\\>.Null if this EnabledMask is not valid. |
