Documentation

Unity Engine


Unity Engine


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

EnableBitFirst bit of the EnabledMask buffer
this[]Access the bit at bit-memory-address (first bit) + index

Methods

Method

Description

GetBitRetrieve the value of the bit from bit-memory-address (first bit) + index
GetEnabledRefROGet a EnabledRefRO<T> reference to the enabled bit at index.
GetEnabledRefRWGet a EnabledRefRW<T> reference to the enabled bit at index.
GetOptionalEnabledRefROGet a EnabledRefRO<T> reference to the enabled bit at index.
GetOptionalEnabledRefRWGet a EnabledRefRW<T> reference to the enabled bit at index. Returns EnabledRefRORW\<T\>.Null if this EnabledMask is not valid.