{!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 TryGetBuffer | Entities | 1.2.0-exp.3
docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method TryGetBuffer

    TryGetBuffer(Entity, out DynamicBuffer<T>)

    Retrieves the buffer components associated with the specified Entity, if it exists. Then reports if the instance still refers to a valid entity and that it has a buffer component of type T.

    Declaration
    public bool TryGetBuffer(Entity entity, out DynamicBuffer<T> bufferData)
    Parameters
    Type Name Description
    Entity entity

    The entity.

    DynamicBuffer<T> bufferData

    The buffer component of type T for the given entity, if it exists.

    Returns
    Type Description
    bool

    True if the entity has a buffer component of type T, and false if it does not.

    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)