{!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 UnlockPayloadBuffer | Unity Logging | 1.1.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method UnlockPayloadBuffer

    UnlockPayloadBuffer(PayloadHandle, PayloadLockContext)

    Releases an existing Payload Lock on the specified buffer for a given context.

    Declaration
    public bool UnlockPayloadBuffer(PayloadHandle handle, PayloadLockContext context)
    Parameters
    Type Name Description
    PayloadHandle handle

    A valid PayloadHandle value for the Payload buffer to unlock.

    PayloadLockContext context

    Value returned by preceding call to LockPayloadBuffer(PayloadHandle).

    Returns
    Type Description
    bool

    True if unlock operation was successful or not.

    Remarks

    Each call to LockPayloadBuffer(PayloadHandle) generates a unique context value for a given buffer and Unlock must called for each context before the buffer can be safely released. While it's still possible to "force" release a locked Payload buffer, this isn't recommended.

    If the specified buffer wasn't locked for this specific context, the unlock operation will fail.

    See Also
    LockPayloadBuffer(PayloadHandle)
    IsPayloadBufferLocked(PayloadHandle, out int)
    ReleasePayloadBuffer(PayloadHandle, out PayloadReleaseResult, bool)
    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)