docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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

    Constructors

    Name Description
    EnabledMask(SafeBitRef, int*)

    Interpret the memory at SafeBitRef as an EnabledMask.

    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)