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.
Read time 1 minuteLast updated a day ago
Definition
- Type: Struct
- Namespace: Unity.Entities
- Assembly: UnityEngine.EntitiesModule
public struct EnabledMask
Remarks
Do not store outside of stack
Properties
Property | Description |
|---|---|
| EnableBit | First bit of the EnabledMask buffer |
| this[] | Access the bit at bit-memory-address (first bit) + index |
Methods
Method | Description |
|---|---|
| GetBit | Retrieve the value of the bit from bit-memory-address (first bit) + index |
| GetEnabledRefRO | Get a EnabledRefRO<T> reference to the enabled bit at index. |
| GetEnabledRefRW | Get a EnabledRefRW<T> reference to the enabled bit at index. |
| GetOptionalEnabledRefRO | Get a EnabledRefRO<T> reference to the enabled bit at index. |
| GetOptionalEnabledRefRW | Get a EnabledRefRW<T> reference to the enabled bit at index. Returns EnabledRefRORW\<T\>.Null if this EnabledMask is not valid. |