Struct 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.
Namespace: Unity.Entities
Assembly: Unity.Entities.dll
Syntax
public struct EnabledMask
Remarks
Do not store outside of stack
Properties
Name | Description |
---|---|
EnableBit | First bit of the EnabledMask buffer |
this[int] | Access the bit at bit-memory-address (first bit) + index |
Methods
Name | Description |
---|---|
GetBit(int) | Retrieve the value of the bit from bit-memory-address (first bit) + index |
GetEnabledRefRO<T>(int) | Get a EnabledRefRO<T> reference to the enabled bit at index. |
GetEnabledRefRW<T>(int) | Get a EnabledRefRW<T> reference to the enabled bit at index. |
GetOptionalEnabledRefRO<T>(int) | Get a EnabledRefRO<T> reference to the enabled bit at index. |
GetOptionalEnabledRefRW<T>(int) | Get a EnabledRefRW<T> reference to the enabled bit at index. Returns EnabledRefRORW<T>.Null if this EnabledMask is not valid. |