docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct BufferAccessor<T>

    Interface to a chunk's array of component values for a buffer component type

    Namespace: Unity.Entities
    Assembly: Unity.Entities.dll
    Syntax
    [NativeContainer]
    public struct BufferAccessor<T> where T : unmanaged, IBufferElementData
    Type Parameters
    Name Description
    T

    Buffer component type.

    Properties

    Name Description
    this[int]

    Look up the DynamicBuffer<T> value at a specific array index within the chunk.

    Length

    The number of buffer elements

    Methods

    Name Description
    ToFixedString()

    Returns the formatted FixedString "BufferAccessor[type_name_here]".

    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)