Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

EnabledMask

struct in Unity.Entities

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

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.

Do not store outside of stack

Properties

Property Description
EnableBit First bit of the EnabledMask buffer
this[int] Access the bit at bit-memory-address (first bit) + index

Public Methods

Method Description
GetBit Retrieve the value of the bit from bit-memory-address (first bit) + index
GetEnabledRefRO Get a EnabledRefRO<T0> reference to the enabled bit at index.
GetEnabledRefRW Get a EnabledRefRW<T0> reference to the enabled bit at index.
GetOptionalEnabledRefRO Get a EnabledRefRO<T0> reference to the enabled bit at index.
GetOptionalEnabledRefRW Get a EnabledRefRW<T0> reference to the enabled bit at index. Returns EnabledRefRORW<T>.Null if this EnabledMask is not valid.