docs.unity.cn
    Show / Hide Table of Contents

    Method GetBuffer

    GetBuffer<T>(Entity)

    Gets the dynamic buffer of an entity.

    Declaration
    public DynamicBuffer<T> GetBuffer<T>(Entity entity)
        where T : struct, IBufferElementData
    Parameters
    Type Name Description
    Entity entity

    The entity.

    Returns
    Type Description
    DynamicBuffer<T>

    The DynamicBuffer object for accessing the buffer contents.

    Type Parameters
    Name Description
    T

    The type of the buffer's elements.

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Friday, May 28, 2021