{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method GetBufferAccessor | Entities | 1.2.0-exp.3
docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method GetBufferAccessor

    GetBufferAccessor<T>(ref BufferTypeHandle<T>)

    Provides access to a chunk's array of component values for a specific buffer component type.

    Declaration
    public readonly BufferAccessor<T> GetBufferAccessor<T>(ref BufferTypeHandle<T> bufferTypeHandle) where T : unmanaged, IBufferElementData
    Parameters
    Type Name Description
    BufferTypeHandle<T> bufferTypeHandle

    The type handle for the target component type.

    Returns
    Type Description
    BufferAccessor<T>

    An interface to this chunk's component values for type T

    Type Parameters
    Name Description
    T

    The target component type, which must inherit IBufferElementData.

    GetBufferAccessor<T>(BufferTypeHandle<T>)

    Obsolete. Use GetBufferAccessor<T>(ref BufferTypeHandle<T>) instead.

    Declaration
    [Obsolete("The bufferTypeHandle argument should now be passed by ref. (RemovedAfter Entities 1.0)", false)]
    public readonly BufferAccessor<T> GetBufferAccessor<T>(BufferTypeHandle<T> bufferTypeHandle) where T : unmanaged, IBufferElementData
    Parameters
    Type Name Description
    BufferTypeHandle<T> bufferTypeHandle

    The type handle for the target component type.

    Returns
    Type Description
    BufferAccessor<T>

    An interface to this chunk's component values for type T

    Type Parameters
    Name Description
    T

    The target component type, which must inherit IBufferElementData.

    In This Article
    Back to top
    Copyright © 2023 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)