docs.unity.cn
    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
    Syntax
    [NativeContainer]
    public struct BufferAccessor<T>
        where T : struct, IBufferElementData
    Type Parameters
    Name Description
    T

    Buffer component type.

    Properties

    Name Description
    Item[Int32]

    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]".

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023